Local Development
Install dependencies
From repo root:
npm install
Backend dependencies are Python-based:
cd backend/core-api
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
Environment setup
Copy the shared template:
cp .env.example .env
Validate expected local Compose variables:
python3 scripts/validate_env.py --profile local-compose --env-file .env
Do not commit secret values. Document env names only.
Run the full stack
docker compose up --build
Local URLs:
| Service | URL |
|---|---|
| Webapp | http://localhost:3000 |
| Backend Core API | http://localhost:8000 |
| Backend health | http://localhost:8000/health |
| Backend metrics | http://localhost:8000/metrics |
| API docs | http://localhost:8000/api/v1/docs |
| Docusaurus docs | http://localhost:3002 |
Run individual services
Frontend:
npm run dev --workspace=apps/webapp
# or
npm run webapp:dev
Backend:
cd backend/core-api
source venv/bin/activate
uvicorn app.main:app --reload --host 0.0.0.0 --port 8000
Docs:
npm run docs:dev
# or
npm --prefix app-doc run start