fastapi-boilerplate-gen

Scaffold a production-ready FastAPI app with JWT auth and Docker in one command.

View on GitHub See Demo
install
$ pip install fastapi-boilerplate-gen

One command, full project

$ fapigen my-api ✓ Created my-api/ my-api/my_api/main.py my-api/my_api/core/config.py my-api/my_api/api/v1/router.py my-api/my_api/api/v1/endpoints/items.py my-api/my_api/api/v1/endpoints/auth.py my-api/tests/test_health.py my-api/requirements.txt my-api/Dockerfile my-api/docker-compose.yml my-api/.env.example Next steps: cd my-api pip install -r requirements.txt uvicorn my_api.main:app --reload Docs → http://localhost:8000/docs

Flags

--no-docker
Skip Dockerfile and docker-compose.yml
--no-jwt
Skip JWT auth endpoints and dependencies
--output DIR
Parent directory for the project (default: .)
--list
Preview files without creating them (dry run)