chore: wire oidc environment configuration
This commit is contained in:
16
README.md
16
README.md
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user