Production-ready · Python · FastAPI

Ship your SaaS in hours, not weeks.

A complete FastAPI boilerplate with JWT auth, PostgreSQL, Redis, OpenAI, file uploads, Celery, Docker, and tests. Everything wired up. Nothing to figure out.

Get the boilerplate → See what's inside €29 · one-time
# Setup in one command
$ bash scripts/setup.sh
🚀 FastAPI Boilerplate starting [development]
✅ Database migrated
✅ Redis connected
$ uvicorn app.main:app --reload
INFO: Uvicorn running on http://127.0.0.1:8000
FastAPI 0.111 SQLAlchemy 2.0 Alembic PostgreSQL Redis Celery JWT bcrypt OpenAI S3 / R2 Docker Pytest

What's included

Every piece you need. Zero boilerplate.

AUTH

Complete authentication

Register, login, refresh tokens, email verification, password reset. JWT access + refresh with bcrypt hashing.

DB

Database ready

PostgreSQL + SQLAlchemy 2.0 ORM + Alembic migrations. Initial migration already written and applied.

AI

OpenAI integration

Protected chat endpoint wired to OpenAI. Swap the model in one env variable. Streaming-ready.

UPLOADS

File uploads

S3 and Cloudflare R2 support. Type validation, 10MB limit, user-scoped paths. Works out of the box.

TASKS

Background tasks

Celery + Redis worker with retry logic. Example tasks included: email sending, token cleanup.

DOCKER

Docker Compose

Full stack in one command: app, PostgreSQL, Redis, Celery worker. Health checks included.

TESTS

Test suite

8 pytest tests with in-memory SQLite. No external dependencies. CI-ready from day one.

SECURITY

Security built-in

Rate limiting, CORS, docs hidden in production, no email enumeration on password reset.


Project structure

Clean architecture. Scales naturally.

fastapi-boilerplate/
├── app/
│ ├── api/v1/endpoints/
│ │ ├── auth.py ← register, login...
│ │ ├── users.py ← CRUD + admin
│ │ ├── ai.py ← OpenAI chat
│ │ └── uploads.py ← S3/R2
│ ├── core/
│ │ ├── config.py ← pydantic-settings
│ │ └── security.py ← JWT + bcrypt
│ ├── services/
│ │ └── user_service.py
│ ├── worker.py ← Celery
│ └── main.py ← entrypoint
├── alembic/ ← migrations
├── tests/
├── docker-compose.yml
├── Dockerfile
└── scripts/setup.sh

Pricing

One price. Keep forever.

€29

ONE-TIME PURCHASE · INSTANT DOWNLOAD

Download now — €29 →

FAQ

Questions

What Python version do I need?

Python 3.12+ is recommended. Docker handles everything for you if you prefer not to manage environments manually.

Can I use this for client projects?

Yes. MIT license — use it in personal projects, commercial SaaS, client work. No attribution required.

Do I need all the services (Redis, Celery)?

No. Each module is independent. Remove what you don't need — the core (auth + DB) works standalone.

Does the OpenAI integration cost anything extra?

Only your OpenAI API usage. The endpoint defaults to gpt-4o-mini — very cheap. You can swap it in .env.

I don't use AWS S3 — can I use Cloudflare R2?

Yes. Set S3_ENDPOINT_URL to your R2 endpoint. The upload code uses the S3-compatible API which R2 fully supports.

Is there a refund policy?

30-day full refund, no questions asked. If it doesn't work for your use case, you get your money back.