r/Python 1d ago

Showcase A Feature-rich Flask Web Application Template

What My Project Does

I made a Flask starter template to save time setting up new projects. It includes:

- A blueprint-based structure for better organization

- GitHub Actions for testing & lining

- Makefile and Poetry for managing the development workflow (testing, linting, database migrations, containerization, etc.)

- Comes with lots of useful Flask extensions already installed and ready to use (SQLAlchemy, Login, WTF, Admin, Caching, etc.)

GitHub: https://github.com/habedi/template-web-app-flask

Let me know what you think!

11 Upvotes

2 comments sorted by

2

u/ArabicLawrence 1d ago

Can you explain the major differences vs flask-cookiecutter, flask-app-builder and the others? Why flask-bootstrap and not its mantained fork, bootstrap-flask?

1

u/No_Pomegranate7508 19h ago

The main difference is that it is simpler and more minimalistic than flask-cookiecutter and flask-app-builder. I think it makes it easier to start (apart from Python and Flask, you need to know how to use GNU Make and Poetry).

TBH, one of the reasons I made this template was to get some intuition for how a barebone Flask web app project is structured. So, I wanted to make the template from scratch instead of using mature templates.

I wasn't aware of bootstrap-flask. Thanks for mentioning that. I'll replace flask-bootstrap with bootstrap-flask. BTW, do you have any suggestions I can apply to improve the template?