cp .env.example .env
docker compose -f infra/compose/docker-compose.yml up -d postgres
cargo run -p server
In another terminal:
cd apps/web && npm install && npm run dev
Open http://127.0.0.1:5173. Swagger UI is at http://127.0.0.1:8080/api/docs.
cargo run -p server.APP_ENV=development.| Knob | Where |
|---|---|
| Profile | APP_ENV=development\|production |
| File | config/{APP_ENV}.toml |
| Env | APP__SERVER__PORT=8080 |
| Explicit dir | APP_CONFIG_DIR=/abs/path/to/config |
just generate-api
Vite also regenerates on dev/build if packages/contracts/openapi.json changes.
Default: postgres://app:app@127.0.0.1:5432/app
Override with APP__DATABASE__URL or config/local.toml (gitignored).