Skip to content

feat(repo): add full:dev script and clean up package.json scripts#7

Merged
omarmaaref merged 4 commits into
mainfrom
chore/script-cleanup
Jul 20, 2026
Merged

feat(repo): add full:dev script and clean up package.json scripts#7
omarmaaref merged 4 commits into
mainfrom
chore/script-cleanup

Conversation

@omarmaaref

Copy link
Copy Markdown
Owner
  • Add full:dev — single command to launch the entire stack: installs frontend deps, builds and starts 2 backend replicas behind Nginx + MongoDB + full observability stack (Prometheus, Loki, Grafana) via Docker, then launches both Vite frontends against http://localhost:8090.
  • Add .env.observed to each frontend app so vite --mode observed points VITE_API_URL at the Nginx load balancer instead of the default :3000.
  • Add dev:observed script to each frontend package.json (used by full:dev).
  • Rename observed:up/down → full:up/down, cluster:logs → full:logs.
  • Remove redundant scripts: install:all, docker:reset, cluster:up/down/reset, monitoring:up/down/reset (all superseded by full:up/down or unnecessary).
  • Rewrite README quick-start: single-command entry point, service table with ports and descriptions for every component.

Summary

Changes

  • Backend:
  • Frontend:
  • Infra / CI:
  • Docs:

Testing

  • npm test in apps/backend passes
  • npx tsc --noEmit passes in both apps
  • Manually verified via the operator dashboard
  • Manually verified via the Swagger UI at /docs

Notes for reviewers

omarmaaref and others added 2 commits July 19, 2026 19:02
- Add full:dev — single command to launch the entire stack:
  installs frontend deps, builds and starts 2 backend replicas behind
  Nginx + MongoDB + full observability stack (Prometheus, Loki, Grafana)
  via Docker, then launches both Vite frontends against http://localhost:8090.
- Add .env.observed to each frontend app so vite --mode observed points
  VITE_API_URL at the Nginx load balancer instead of the default :3000.
- Add dev:observed script to each frontend package.json (used by full:dev).
- Rename observed:up/down → full:up/down, cluster:logs → full:logs.
- Remove redundant scripts: install:all, docker:reset, cluster:up/down/reset,
  monitoring:up/down/reset (all superseded by full:up/down or unnecessary).
- Rewrite README quick-start: single-command entry point, service table with
  ports and descriptions for every component.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Extract full:install script so npm install is a one-time setup step,
  not re-run on every dev server start.
- full:dev now only starts the Docker stack and launches the Vite frontends.
- Remove ConfigModule from AppModule — env vars are read via process.env
  directly throughout the backend; ConfigService was never injected anywhere.
- Update README quick-start to reflect the two-step flow.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@omarmaaref
omarmaaref merged commit 5f8f0f4 into main Jul 20, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants