Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Welcome to FastAPI Template

This Introduction is the starting point. Use it to figure out where to go next.

FastAPI Template is a production-oriented FastAPI boilerplate. It ships the cross-cutting concerns most backends need: authentication, logging, rate limiting, health checks, pagination, testing, and CI. You start on domain logic, not infrastructure.

What you get

Area What ships out of the box
Structure A consistent, domain-first layout with src/core/ for shared infrastructure.
Auth JWT authentication and basic user management (register, login, /me).
Rate limiting slowapi on the sensitive endpoints.
CORS and headers Environment-driven CORS and security headers.
Logging structlog: console in dev, JSON in prod, with a per-request X-Request-ID.
Health /healthz (liveness) and /readyz (real DB probe).
Pagination A reusable cursor-pagination Page[T] envelope.
Data PostgreSQL and Alembic migrations, uv, and Docker.
Quality pytest, Ruff, pre-commit, and a GitHub Actions CI pipeline.

Where to go next

Pick the path that matches what you are doing.

Just looking around

Starting a new project from the template

Running it on your own machine

Working on the code and quality

  • Testing explains the test suite and policy.
  • Contributing explains the conventions for proposing changes.

Helping or contributing back

New here? Read Conventions next. It covers formatting, imports, and the Pydantic and SQLAlchemy style.