Skip to content

MaswiliK/flaskit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

18 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

FlaskIt

Scaffold a production-ready Flask backend in seconds.
MVP or SaaS β€” you choose.

Stop configuring. Start building.


CI PyPI Python License: MIT

✨ What is FlaskIt?

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

πŸ“¦ Installation

From PyPI

pip install flaskit

From source

git clone https://github.com/MaswiliK/flaskit.git
cd flaskit
pip install -e .

πŸš€ 2-Second Demo

See FlaskIt generate and run a backend automatically:

Flaskit Demo

flaskit demo

This will:

  1. Create hello-flaskit/
  2. Install Flask (if missing)
  3. Start the dev server

Then open:

http://127.0.0.1:5000

You now have a working backend.


🧠 Commands

Create a project

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

Bootstrap a project

flaskit up [OPTIONS]

Run this from inside a generated project directory. It handles everything in one shot:

  1. Create .venv/ virtual environment
  2. Install dependencies from requirements.txt
  3. Create .env (copies .env.example if present, otherwise writes defaults)
  4. Initialise the database
  5. Run migrations (if migrations/ exists)
  6. 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

Demo project

flaskit demo

Creates and runs a working Flask project. Press Ctrl + C to stop the server.


πŸ§ͺ Examples

Create a minimal prototype:

flaskit create myapp

Create a scalable SaaS backend:

flaskit create myapp --template saas --db postgresql --gitignore --readme --dockerfile --env-file --vscode

⌨️ Shell Autocomplete

Enable tab completion:

flaskit --install-completion

Then Tab will autocomplete:

  • commands (create, demo, up)
  • template types (mvp, saas)
  • database options

🧱 Templates

⚑ MVP Template

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/

πŸ—οΈ SaaS Template

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

🀝 Contributing

Pull requests are welcome. Ideas, feature requests, and improvements are encouraged.

If FlaskIt helped you β€” consider ⭐ starring the repo.


πŸ“„ License

MIT

About

πŸš€ FlaskIt β€” Premium Flask Project Generator CLI with MVP & SAAS templates, Rich progress bars, and cross-platform support. Just flask it

Topics

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages