Skip to content
SarvexDocs
Esc
↑↓navigate↵open⌘Jpreview
On this page

Local setup

Run the backing services, the three planes and the console locally.

You need Go 1.26+, a current Node.js LTS, and Docker. Local, tests and CI run the same services (MongoDB, Redis, NATS JetStream, Vault) via deployments/docker-compose.yaml — nothing is emulated.

Build and run unit tests

go build ./...
make test-unit        # no external services needed

Start the backend

make infra-up         # Mongo, Redis, NATS JetStream, Vault, OTel collector
make dev-up           # infra + simulated store + control, sync and serving planes
make dev-status
make dev-token        # mint a dev bearer token for curl

make dev-down stops the stack.

Start the console

make console          # mock mode on :5173 — no backend needed
make console-real     # proxies /api to the control plane on :8081 (run make dev-up first)

Run these docs

make docs             # live preview of this site
make docs-build       # static build into web/docs/dist
make docs-preview     # serve the built site

Regenerating contract-derived code

The console’s TypeScript types are generated from the control-plane OpenAPI file:

cd web/console && npm run gen:api

CI fails if src/api/schema.d.ts drifts from the contract. The API reference in these docs is rendered from the same files, so it needs no regeneration step.

Was this page helpful?