Local Deploy Seed List App
Overview
Use this skill to bring the current FastAPI project online locally with minimal manual steps and consistent checks.
Workflow
- •Verify prerequisites: Python 3.11+,
pip, and optionally Docker. - •Bootstrap Python environment and dependencies with
scripts/bootstrap_local.ps1. - •Ensure PostgreSQL is reachable:
- •Use existing local PostgreSQL from
.env. - •Or start an ephemeral Docker PostgreSQL with
scripts/start_postgres_docker.ps1.
- •Run migrations.
- •Start API with
scripts/start_api.ps1. - •Confirm health endpoint.
Commands
1. Bootstrap environment
powershell
powershell -ExecutionPolicy Bypass -File skills/local-deploy-seed-list-app/scripts/bootstrap_local.ps1
2. Start PostgreSQL with Docker (optional)
powershell
powershell -ExecutionPolicy Bypass -File skills/local-deploy-seed-list-app/scripts/start_postgres_docker.ps1
3. Start API server
powershell
powershell -ExecutionPolicy Bypass -File skills/local-deploy-seed-list-app/scripts/start_api.ps1
Operational Guidance
- •Prefer
.venvin repository root. - •Keep
.envas source of truth forDATABASE_URL,APP_HOST, andAPP_PORT. - •Run
alembic upgrade headbefore first start and after schema changes. - •If database connection fails, verify database is reachable and matches
.env. - •Use
references/local-deploy-checklist.mdfor troubleshooting and smoke tests.