{"repo":"salimane/flask-mvc","free":true,"listed":false,"github":"https://github.com/salimane/flask-mvc","clone":"git clone https://github.com/salimane/flask-mvc.git","description":"python boilerplate application following MVC pattern using flask micro framework","language":"Python","stars":142,"topics":["flask","mvc"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"Flask-MVC A minimal Flask boilerplate following the MVC pattern — designed as a clean starting point for new Python web applications. --- Features - Application Factory ( create app() ) — safe for testing and multiple configs - Blueprint-based controllers — one file per resource, explicit registration - Environment-based configuration — Development , Testing , Production config classes - POST/Redirect/GET form handling — prevents double-submit on refresh - Jinja2 macro library — shared render error and helpers in layout/macros.html - Test suite — 96% coverage out of the box with pytest + pytest-cov - Docker-ready — optimised multi-layer Dockerfile and docker-compose.yml --- Project structure --- Prerequisites - Python 3.14+ - pip Optional (for Python version management): --- Setup --- Running Docker The app is served by gunicorn on port 16000 inside the container. --- Testing Or via the helper script (creates an isolated virtualenv automatically): Coverage --- Configuration All configuration is driven by environment variables. See .env.example for the full list. Variable Required Default Description -------------- ---------- --------------- ---------------------------------- SECRET KEY Yes — Flask session / CSRF signing key FLASK ENV No development Config profile ( development , testing , production ) PORT No 8080 Dev server port Generate a secure key: --- Extending the boilerplate To add a new resource (e.g. user ): 1. Model — project/models/user.py 2. Controller — project/c","default_branch":null,"files":null,"tree":[],"storefront":"/r/salimane","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/salimane/flask-mvc/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}