To run this app locally, you need a Postgres database. If you have Docker, you can start one with:
Setup dependencies
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txtStart Postgres
export PGPASSWORD=dbos
python3 start_postgres_docker.pyStart the app
export DBOS_DATABASE_URL="postgresql+psycopg://postgres:dbos@localhost:5432/minesweeper_dbos?connect_timeout=5"
dbos migrate
dbos startVisit http://localhost:8000/docs to see the API!
Auto-generate migrations with Alembic
export PGPASSWORD=dbos
alembic revision --autogenerate -m "add table"