Skip to content
/ fastapi-template Public template

FastAPI template with asyncpg, sqlmodel and alembic

Notifications You must be signed in to change notification settings

getflow/fastapi-template

Repository files navigation

FastAPI template

FastAPI template with

Run

in development

Use uvicorn app.main:app --host 127.0.0.1 --port 8000 --reload.

in production

Use gunicorn app.main:app --workers 4 --worker-class uvicorn.workers.UvicornWorker --bind 0.0.0.0:8000.

Docker

Template comes with Dockerfile. Feel free to use it, it's ready for production.

Monitoring

Prometheus metrics

Use http://127.0.0.1:8000/prometheus/metrics to access prometheus metrics.

Actuator (pyctuator)

Use http://127.0.0.1:8000/pyctuator/ to list pyctuator routes.

See Pyctuator repository for more information.

About

FastAPI template with asyncpg, sqlmodel and alembic

Resources

Stars

Watchers

Forks

Sponsor this project

Contributors 2

  •  
  •