boilerplates

FastAPI Application Boilerplate

Modern, fast, and production-ready FastAPI application structure.

Structure

fastapi_app/
├── app/
│   ├── __init__.py
│   ├── main.py
│   ├── api/
│   │   ├── __init__.py
│   │   └── v1/
│   ├── core/
│   │   ├── config.py
│   │   └── security.py
│   ├── models/
│   ├── schemas/
│   └── db/
├── tests/
├── requirements.txt
├── .env.example
└── README.md

Features

Usage

  1. Install dependencies: pip install -r requirements.txt
  2. Copy .env.example to .env and configure
  3. Run development server: uvicorn app.main:app --reload
  4. Access API docs: http://localhost:8000/docs
  5. Run tests: pytest

Endpoints