Production-ready · Python · FastAPI
A complete FastAPI boilerplate with JWT auth, PostgreSQL, Redis, OpenAI, file uploads, Celery, Docker, and tests. Everything wired up. Nothing to figure out.
What's included
Complete authentication
Register, login, refresh tokens, email verification, password reset. JWT access + refresh with bcrypt hashing.
Database ready
PostgreSQL + SQLAlchemy 2.0 ORM + Alembic migrations. Initial migration already written and applied.
OpenAI integration
Protected chat endpoint wired to OpenAI. Swap the model in one env variable. Streaming-ready.
File uploads
S3 and Cloudflare R2 support. Type validation, 10MB limit, user-scoped paths. Works out of the box.
Background tasks
Celery + Redis worker with retry logic. Example tasks included: email sending, token cleanup.
Docker Compose
Full stack in one command: app, PostgreSQL, Redis, Celery worker. Health checks included.
Test suite
8 pytest tests with in-memory SQLite. No external dependencies. CI-ready from day one.
Security built-in
Rate limiting, CORS, docs hidden in production, no email enumeration on password reset.
Project structure
Pricing
ONE-TIME PURCHASE · INSTANT DOWNLOAD
FAQ
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.