PictoPy icon indicating copy to clipboard operation
PictoPy copied to clipboard

DOC: Clarify backend and sync microservice prerequisites for frontend development and manual testing

Open Prakhar1808 opened this issue 2 months ago • 4 comments

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:

  1. 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 (port 52123) and sync-microservice (port 52124) running concurrently.

  2. In docs/Manual_Setup_Guide.md ("Tauri Frontend Setup"): Step 4 instructs the user to run npm run tauri dev before 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.
  • 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:

Waiting for servers error

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)
Three terminal sessions running concurrently using Arch linux (Manual Setup)

Record

  • [x] I agree to follow this project's Code of Conduct
  • [x] I want to work on this issue

Prakhar1808 avatar Sep 26 '26 17:09 Prakhar1808

👋 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 :)

github-actions[bot] avatar Sep 26 '26 17:09 github-actions[bot]

⚠️ Potential Duplicate Issue (Semantic Match)

This issue appears semantically similar to the following issues in AOSSIE-Org/PictoPy:

  1. 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%

  2. Feat: unifying the backend architecture (#1089, closed) https://github.com/AOSSIE-Org/PictoPy/issues/1089 Similarity: 60.3%

  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.

github-actions[bot] avatar Sep 26 '26 18:09 github-actions[bot]

Link your account with Gitcord

Thanks for opening this issue, @Prakhar1808!

To receive Discord notifications and contributor tracking for this organization:

  1. Join Discord: https://discord.gg/hjUhu33uAn
  2. In Discord, run /link Prakhar1808
  3. Paste the verification code into your GitHub bio (or a public gist)
  4. Click Verify in Discord (or run /verify-link Prakhar1808)

Once linked, Gitcord can notify you about assignments, mentions, and more.

— Posted by Gitcord

gitcordapp[bot] avatar Sep 27 '26 05:09 gitcordapp[bot]

If you find this issue as a useful thing to be implemented in PictoPy, then Can i Please work on this issue

jaydeep83721-dev avatar Sep 28 '26 17:09 jaydeep83721-dev