DOC: Clarify backend and sync microservice prerequisites for frontend development and manual testing
What's wrong with the existing documentation
Is there an existing issue for this?
- [x] I have searched the existing issues
What's wrong with the existing documentation?
Currently, there is ambiguity around how frontend changes should be run and tested:
-
In
CONTRIBUTING.md("Testing" section): Only unit testing (cd frontend && npm test) is listed. There is no guidance on manual UI / development testing, or mention that testing full frontend functionality with live data requires the FastAPI backend (port52123) and sync-microservice (port52124) running concurrently. -
In
docs/Manual_Setup_Guide.md("Tauri Frontend Setup"): Step 4 instructs the user to runnpm run tauri devbefore the Python backend or sync-microservice environments are even set up. When launched in isolation without the sidecar servers running, the frontend displays "Waiting for servers to start" and fails to connect. Additionally, the guide currently lacks a clear concluding section showing how to run all three services together once configured.
Proposed Solution
- In
CONTRIBUTING.md:- Clarify that automated unit tests (
npm test,pytest,cargo test) use mocked dependencies and run independently. - Add a high-level manual testing note pointing contributors to the setup guides for running the full multi-service development environment.
- Clarify that automated unit tests (
- In
docs/Manual_Setup_Guide.md:- Update Step 4 under Tauri Frontend Setup to direct contributors to complete the backend and sync setups first.
- Add a dedicated "Running the Complete Application" section after the sync setup detailing the three concurrent terminal sessions required for local development (Backend on
:52123, Sync-Microservice on:52124, and Tauri Frontend).
I would love to submit a PR to update and clarify these sections if the maintainers agree!
Add ScreenShots
1. Running the frontend in isolation (npm run tauri dev)
Without the backend and sync-microservice running, the app prompts "Waiting for servers to start" and fails to connect:
2. Manual testing requires 3 concurrent services
To successfully test frontend changes manually, three separate terminal sessions are required
- Terminal 1: Python FastAPI backend (
:52123) - Terminal 2: Sync microservice (
:52124) - Terminal 3: Tauri frontend (
npm run tauri dev)
Record
- [x] I agree to follow this project's Code of Conduct
- [x] I want to work on this issue
👋 Thanks for opening this issue! The maintainers will review it shortly. Till then, do not open any PR. This is a strict rule we like to follow around here :)
⚠️ Potential Duplicate Issue (Semantic Match)
This issue appears semantically similar to the following issues in AOSSIE-Org/PictoPy:
-
Feat:Rewrite run.sh into a unified dev/prod launcher for backend, sync-microservice, and frontend (#1395, open) https://github.com/AOSSIE-Org/PictoPy/issues/1395 Similarity: 65.8%
-
Feat: unifying the backend architecture (#1089, closed) https://github.com/AOSSIE-Org/PictoPy/issues/1089 Similarity: 60.3%
-
DOC: Frontend Setup Issue (Manual Docs vs Video Setup) (#963, closed) https://github.com/AOSSIE-Org/PictoPy/issues/963 Similarity: 59%
Please review before proceeding.
Link your account with Gitcord
Thanks for opening this issue, @Prakhar1808!
To receive Discord notifications and contributor tracking for this organization:
- Join Discord: https://discord.gg/hjUhu33uAn
- In Discord, run
/link Prakhar1808 - Paste the verification code into your GitHub bio (or a public gist)
- Click Verify in Discord (or run
/verify-link Prakhar1808)
Once linked, Gitcord can notify you about assignments, mentions, and more.
— Posted by Gitcord
If you find this issue as a useful thing to be implemented in PictoPy, then Can i Please work on this issue