FastAPI Starter

Run

  1. poetry install
  2. make upgrade_db env=local.env
  3. make run env=local.env
  4. open http://localhost:8000/docs

Model Changes (Migrations)

  1. Change database models
  2. make make_db_migration env=local.env name=${NAME OF MIGRATION}
  3. Revise migration file
  4. make upgrade_db env=local.env

Note: You will need to fix non-null changed attributes manually

Features

  • Config management
  • Logging
  • vscode debugger
  • linting
  • formatting
  • auto api docs
  • sql database
  • migrations
  • prefix ids
  • pagination
  • filtering pattern
  • async/background tasks
  • cron jobs
  • authentication
  • authorization
  • relations
  • secrets management
  • Endpoint rate limiting
  • API consumption retry
  • object versioning/audit
  • api versioning
  • Unit testing
  • Hypothesis/property testing
  • Codecov
  • Tour
  • Templateable
  • Request ID
  • Request ID corelating
  • Idempotency key
  • Profiling
  • async database
  • Audit by

Recommended VSCode Extensions