Skip to content

[M0.5] Local dev environment - #11

Merged
samuelmbabhazi merged 3 commits into
mainfrom
feat/m0.5-local-dev-environment
Nov 3, 2026
Merged

samuelmbabhazi merged 3 commits into
mainfrom
feat/m0.5-local-dev-environment

Conversation

@samuelmbabhazi

Copy link
Copy Markdown
Collaborator

Task

[M0.5] Local dev environment. Closes #5

What changed

  • deploy/dev/compose.yml: PostgreSQL 17, VictoriaLogs v1.53.0, VictoriaMetrics v1.155.0 and CNCF Distribution 3.1.2, every image pinned to a digest, every port bound to 127.0.0.1 only, data in named volumes, 30-day retention for logs and metrics, PostgreSQL health check so --wait returns when the database accepts connections.
  • pnpm dev starts the Docker services (pnpm dev:infra) then api and web with hot reload through Nx. pnpm dev:infra:down stops the services, pnpm dev:infra:reset also deletes the volumes.
  • The Angular dev server proxies /api to the control plane (apps/web/proxy.conf.json), so the UI uses same-origin URLs from day one. Page title set to Shipkeep.
  • README: prerequisites, the two commands, ports and the other everyday commands.

Why

Acceptance criterion of M0.5: a new contributor runs the stack with two commands documented in the README.

How it was tested

  • Docker is not available on the development machine, so the Compose file was checked structurally (valid YAML, Prettier) and every image digest was resolved from the registry API. The first pnpm dev:infra run happens in CI once the integration tests need the stack (M1.2) and on the maintainer's machine; please report any issue.
  • nx serve api and nx serve web were started locally: GET http://localhost:3000/api/v1/health returns {"status":"ok"}, the UI serves on 4200, and GET http://localhost:4200/api/v1/health reaches the API through the proxy.
  • pnpm nx run-many -t lint typecheck test build: 25 tasks succeeded.

Security considerations

Development-only stack. Ports are loopback-bound so the database, the registry and the observability stores are not exposed on the LAN. Credentials are the documented fake dev values and match .env.example. Image digests are pinned.

Checklist

  • Acceptance criteria from docs/PLAN.md are met and the task is ticked
  • Lint, TS tests, Go tests and buf lint pass
  • Tests: not applicable (infrastructure configuration), dev servers smoke-tested
  • No new shell invocation and no new secret exposure path
  • Audit events: not applicable
  • README updated

@samuelmbabhazi
samuelmbabhazi merged commit 8170fb9 into main Nov 3, 2026
10 checks passed
@samuelmbabhazi
samuelmbabhazi deleted the feat/m0.5-local-dev-environment branch November 3, 2026 11:15
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.

[M0.5] Local dev environment

1 participant