Prerequisites
- Docker and Docker Compose v2+
- Node.js 20+ and pnpm
- Python 3.12+
- Git
Docker Development (Recommended)
The fastest way to get started:.env and set the required secrets:
docker compose -f docker-compose.yml -f docker-compose.dev.yml up -d, which starts all services with hot-reload enabled.
| Service | URL |
|---|---|
| Frontend (Vite dev server) | http://localhost:5173 |
| Backend (FastAPI with reload) | http://localhost:8000 |
| API Docs (Swagger) | http://localhost:8000/docs |
| PostgreSQL | localhost:5432 |
Development Overrides
Thedocker-compose.dev.yml file overrides the base config for development:
- Backend runs with
--reloadfor live code reloading - Frontend runs with
pnpm dev --host 0.0.0.0on port 5173 - Source code is volume-mounted for live editing
VITE_API_URLis set tohttp://localhost:8000/api/v1
Useful Commands
Manual Setup (Without Docker)
If you prefer to run services directly on your machine.Database and Redis
You’ll need PostgreSQL 16 with pgvector and Redis 7 running locally, or you can start just the infrastructure services via Docker:Backend
Frontend
app/.env.local:
Generating Secrets
IDE Setup
VS Code
Recommended extensions:- Python (ms-python.python)
- Pylance (ms-python.vscode-pylance)
- ESLint (dbaeumer.vscode-eslint)
- Tailwind CSS IntelliSense (bradlc.vscode-tailwindcss)