chore: wire oidc environment configuration

This commit is contained in:
Bastian Wagner
2026-08-17 15:54:30 +02:00
parent 6e991bfd00
commit 60e09d5050
5 changed files with 41 additions and 1 deletions

View File

@@ -19,10 +19,24 @@ docs/ Specs, plans, and architecture documentation
```bash
pnpm install
pnpm dev:infra
DATABASE_URL=postgresql://travel_planner:travel_planner_dev@localhost:5432/travel_planner REDIS_URL=redis://localhost:6379 pnpm --filter backend start:api
DATABASE_URL=postgresql://travel_planner:travel_planner_dev@localhost:5432/travel_planner \
REDIS_URL=redis://localhost:6379 \
OIDC_ISSUER=https://idp.example.invalid/realms/travel-planner \
OIDC_AUDIENCE=travel-planner-api \
pnpm --filter backend start:api
pnpm --filter frontend start
```
Run pending migrations against the dev database before starting the API for the first time:
```bash
export DATABASE_URL=postgresql://travel_planner:travel_planner_dev@localhost:5432/travel_planner
export REDIS_URL=redis://localhost:6379
export OIDC_ISSUER=https://idp.example.invalid/realms/travel-planner
export OIDC_AUDIENCE=travel-planner-api
pnpm --filter backend build:api && node backend/dist/apps/api/src/migration.js
```
`pnpm dev:infra` starts local PostgreSQL/Redis (see `compose.dev.yml`); `pnpm dev:infra:down` stops them.
## Quality gates