Flask App Blueprint: the fast way to start your MVP
Flask App Blueprint is a small starter app for Flask 3 projects. It includes authentication, CRUD examples, database migrations, transactional email hooks, a verified unittest suite, and a workflow that works locally, in GitHub Codespaces, and on Heroku.
Features
- User registration, email confirmation, and password reset via SMTP
- User profiles, including change password
- Admin only pages including statistics and user management
- Public and member only pages
- Database setup, including database migrations and CRUD examples
- Local development with SQLite by default, optional PostgreSQL, and Heroku deployment support
- GitHub Codespaces support through a checked-in devcontainer
- Powerful stack: back-end based on Python with Flask, front-end is Bootstrap
5.3.8with the Bootstrap bundle JS - Including basic test coverage with Python's built-in
unittestframework
Quick Start
- Install
uv:python -m pip install uv - Sync the locked environment:
uv sync --locked - Copy
.env.exampleto.envif you want to set a realSECRET_KEY, PostgreSQL, or SMTP credentials - Apply migrations:
uv run flask db upgrade - Run tests:
uv run python -m unittest discover -s project/tests -v - Start the app:
uv run flask run
Documentation
Find all the documentation in this repository in the docs folder.