WARP.md#
This file provides guidance to WARP (warp.dev) when working with code in this repository.
Architecture#
This is a full-stack project using FastAPI for the backend and React for the frontend. The backend is written in Python and uses SQLModel as the ORM to interact with a PostgreSQL database. The frontend is written in TypeScript and uses Chakra UI for components. The entire application is containerized using Docker Compose.
Backend: The main backend code is located in the
backend/appdirectory.Frontend: The main frontend code is located in the
frontend/srcdirectory.Database Migrations: Database migrations are handled by Alembic and are located in
backend/app/alembic/versions.
Common Commands#
Backend#
Install dependencies:
cd backend && uv syncRun tests:
bash ./scripts/test.shRun tests against a running stack:
docker compose exec backend bash scripts/tests-start.shCreate a database migration:
docker compose exec backend bashalembic revision --autogenerate -m "Your migration message"
Apply database migrations:
docker compose exec backend bashalembic upgrade head
Frontend#
Install dependencies:
cd frontend && npm installRun development server:
cd frontend && npm run devGenerate API client:
./scripts/generate-client.shRun E2E tests:
npx playwright test
Docker#
Start development environment:
docker compose up -dStop development environment:
docker compose down