Quick Start
import { Steps } from ‘@astrojs/starlight/components’;
This guide gets Quibble running locally with a real Postgres database and Redis. Auth0 is bypassed using a dev token.
-
Clone the repo
Terminal window git clone https://github.com/play-quibble/trivia.gitcd trivia -
Start Postgres and Redis
Terminal window docker compose up -dThis starts Postgres on
5432and Redis on6379. -
Set up the API
Terminal window cd apps/apicp .env.example .envEdit
.envand set:DATABASE_URL=postgres://postgres:postgres@localhost:5432/quibble?sslmode=disableREDIS_ADDR=localhost:6379DEV_AUTH_TOKEN=devtoken123# Leave AUTH0_DOMAIN and AUTH0_AUDIENCE empty for local devRun migrations and start:
Terminal window make migrate-upmake runThe API is now at
http://localhost:8080. Health check:curl http://localhost:8080/healthz -
Set up the web frontend
In a new terminal:
Terminal window cd apps/webcp .env.local.example .env.localEdit
.env.local:API_URL=http://localhost:8080DEV_AUTH_TOKEN=devtoken123Terminal window npm installnpm run devThe app is now at
http://localhost:3000. -
Log in
Open
http://localhost:3000. WithDEV_AUTH_TOKENset, the app bypasses Auth0 and logs you in automatically as a dev host. -
(Optional) Seed questions
Terminal window cd apps/api./seed_questions.sh
Docker Compose reference
Section titled “Docker Compose reference”The docker-compose.yml at the repo root starts:
| Service | Image | Port |
|---|---|---|
| postgres | postgres:16-alpine | 5432 |
| redis | redis:7-alpine | 6379 |
The application services themselves are not in Docker Compose for local dev — you run them directly with make run and npm run dev.