fastapi-fullstack-boilerplate
                                
                                 fastapi-fullstack-boilerplate copied to clipboard
                                
                                    fastapi-fullstack-boilerplate copied to clipboard
                            
                            
                            
                        A full stack (monolith) boilerplate for FastAPI
FastAPI Full-Stack Boilerplate
Features
- All the goodness of modern, async FastAPI
- Seamless Jinja2 templating, just like Flask
- SQLAlchemy ORM and Alembic migrations (PostgreSQL)
- Flask-Admin plugged right in
- Pipenv for python dependency management
Explore the full docs here
Get Started
- Copy .env.exampleto.env(or create your own)
- docker-compose up -dto start the database
- pipenv shell
- FASTAPI_STATICDIGEST_RELOAD=1 uvicorn app.main:create_app --port=8080 --reload
Configuration
- Change the database configuration/credentials in .envanddocker-compose.yaml
- Set DEBUG_ADMIN=1to disable the authorization for the admin panel
Why?
The dependency-injection provided by FastAPI is such a huge improvement over any other python web framework. It's OpenAPI integration is excellent, and it's asgi-first, unlike Flask or Django.
But Django is famous for its admin panel, and the ability to rapidly build server side applications. For this, we include Flask-Admin, and centralied Jinja2 templates as a dependency.