feat(infra): add full-stack compose launcher - #223
Merged
parthrohit22 merged 1 commit intoJul 27, 2026
Merged
Conversation
parthrohit22
marked this pull request as ready for review
July 27, 2026 15:32
Collaborator
Author
|
closes #222 |
6 tasks
parthrohit22
added a commit
that referenced
this pull request
Jul 27, 2026
…ow-up) Keep npm run partha self-building for fresh clones (no pre-built image needed), add partha:up (--no-build) for cached instant restarts and partha:down to stop from another terminal. Documents both in README.
parthrohit22
added a commit
that referenced
this pull request
Jul 27, 2026
feat(infra): add partha:up instant restart and partha:down (#223 follow-up)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a cross-platform
npm run parthaworkflow that builds and starts PARTHA's frontend, API, PostgreSQL, and Redis from the checkout, verifies host readiness, and shuts the stack down without deleting application data. This closes the implementation gap left after the incorrect predecessor PR #216 was reverted while preserving merged PR #214's host-isolated PostgreSQL/Redis posture.Linked issue
Related to #222
The implementation is complete and verified on macOS. The issue remains open because the available in-app browser connector had no browser backend, and Linux/Windows runtime execution was not available in this environment; those acceptance claims are not being overstated.
Roadmap alignment
What changed
npm ci, a build-context.dockerignore, and a health-checked Compose frontend at host port 5173 with browser-facingVITE_API_URL=http://localhost:8000.docker compose up --build --waitwithout a shell; verifies/readyand the frontend from the host; prints the exact ready URL; and performs one volume-preservingdocker compose downon startup failure or SIGINT/SIGTERM.docker compose down -vreset.Acceptance criteria completed
npm run parthabuilds and starts frontend, API, PostgreSQL, and Redis from the checkout.http://localhost:5173andhttp://localhost:8000; real registration/login requests using the frontend Origin returned 201/200 with the expected CORS origin and an access token.docker compose downonce, exits 130, leaves no containers or launcher/up processes, and retains named PostgreSQL/repository-storage volumes.Testing performed
Screenshots
Not applicable — no visible product UI change.
Security and data considerations
PostgreSQL and Redis remain reachable only on the internal
datanetwork and publish no host ports. The frontend joinsdataas required and alsoegressso its published host port works under Colima's internal-network behavior. Ordinary shutdown does not pass-v; PostgreSQL and repository storage persist. The README labelsdocker compose down -vas permanently destructive. No secrets, local env files, generated artifacts, auth behavior, owner scoping, logs, schemas, or migrations changed. The full backend contract/security suite and Compose secret scan passed.Dependencies and blocked work
No repository dependency was added. Runtime prerequisite: Node/npm plus Docker Engine with Compose and buildx. Merged PR #214 established the host-isolated data tier this preserves. Closed PR #216 was the reverted incorrect predecessor. Remaining environment verification is tracked by #222 staying open.
Scope changes or remaining work
/app/node_modulesvolume. Live repeated shutdowns left roughly 300 MB anonymous dependency volumes behind and exhausted the Docker VM, so this uses a namedfrontend_node_modulesvolume that is reused across starts and removed by the documenteddown -vreset.datanetwork. Live Colima verification showed that made published port 5173 unreachable; retainingdataand addingegressmade the host port reachable while database/cache host isolation remained intact.Contributor checklist
devupstream/devupstream/devCloses) is used only because the issue is fully resolved