Sample app for the VSCode debugging article
Create a .env
file. You can find an example in /infra/example.env
.
Build Docker image
docker compose build
Start Docker containers
docker compose up
Both FastAPI app and Postgres database should be running.
To migrate the database tables, first exec into the FastAPI container
docker compose exec fastapi bash
And then, run the migration script
python debug_hell/database/migrate.py