You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# 1) Create .env with your database settings (PostgreSQL)@'DB_HOST=127.0.0.1DB_PORT=5432DB_USER=postgresDB_PASSWORD=postgresDB_NAME=unipacmanREDIS_HOST=127.0.0.1REDIS_PORT=6379REDIS_DB=0'@|Out-File-Encoding utf8 .env
# 2) Install Python deps
pip install -r requirements.txt
# 3) Initialize database tables
python -m src.backend.scripts.init_db
# 4) Run API server# uvicorn src.backend.main:app --reload --host 0.0.0.0 --port 8000
Migrations (Alembic)
# upgrade to latest
alembic upgrade head
# create a new revision (example)
alembic revision -m "add score table"# downgrade one step
alembic downgrade -1