Scaffold a production-ready Flask backend in seconds.
MVP or SaaS β you choose.
Stop configuring. Start building.
FlaskIt is a CLI that instantly generates a clean, organized Flask project structure β so you can skip boilerplate and go straight to writing features.
Instead of spending 2β6 hours setting up:
- folders
- blueprints
- configs
- environment files
- database wiring
You run one command.
flaskit create myapp
Done.
FlaskIt creates a ready-to-run backend with sensible defaults and a scalable architecture.
You can choose:
- β‘ MVP β quick prototype / hackathon / learning
- ποΈ SaaS β modular, scalable production structure
pip install flaskitgit clone https://github.com/MaswiliK/flaskit.git
cd flaskit
pip install -e .See FlaskIt generate and run a backend automatically:
flaskit demoThis will:
- Create
hello-flaskit/ - Install Flask (if missing)
- Start the dev server
Then open:
http://127.0.0.1:5000
You now have a working backend.
flaskit create <project_name> [OPTIONS]
| Option | Default | Description |
|---|---|---|
--template |
mvp |
mvp or saas |
--db |
sqlite |
sqlite or postgresql |
--gitignore |
Include .gitignore |
|
--readme |
Include project README | |
--dockerfile |
Include Dockerfile | |
--env-file |
Include .env configuration |
|
--vscode |
Open project in VS Code |
flaskit up [OPTIONS]
Run this from inside a generated project directory. It handles everything in one shot:
- Create
.venv/virtual environment - Install dependencies from
requirements.txt - Create
.env(copies.env.exampleif present, otherwise writes defaults) - Initialise the database
- Run migrations (if
migrations/exists) - Start the dev server
| Option | Description |
|---|---|
--skip-venv |
Skip virtual environment creation |
--skip-deps |
Skip dependency installation |
--skip-db |
Skip database initialisation |
--skip-migrate |
Skip migrations |
--no-server |
Bootstrap without starting the dev server |
flaskit demo
Creates and runs a working Flask project. Press Ctrl + C to stop the server.
Create a minimal prototype:
flaskit create myappCreate a scalable SaaS backend:
flaskit create myapp --template saas --db postgresql --gitignore --readme --dockerfile --env-file --vscodeEnable tab completion:
flaskit --install-completionThen Tab will autocomplete:
- commands (
create,demo,up) - template types (
mvp,saas) - database options
A simple Flask app ideal for learning and rapid prototypes.
myapp/
βββ main.py
βββ app/
βββ __init__.py
βββ views.py
βββ auth.py
βββ models.py
βββ forms.py
βββ templates/
β βββ layout.html
βββ static/
βββ css/
βββ js/
βββ images/
Blueprint-based modular architecture with app factory & SQLAlchemy.
myapp/
βββ run.py
βββ config.py
βββ requirements.txt
βββ app/
βββ __init__.py
βββ extensions.py
βββ auth/
β βββ routes.py
β βββ models.py
β βββ forms.py
βββ Feature1/
β βββ routes.py
β βββ models.py
β βββ services.py
βββ Feature2/
βββ Feature3/
βββ templates/
β βββ base.html
βββ static/
βββ tests/
βββ test_app.py
Pull requests are welcome. Ideas, feature requests, and improvements are encouraged.
If FlaskIt helped you β consider β starring the repo.
MIT

