3 ms·
I still happily use Flask with mostly Jinja rendered templates. With things like Hotwire and htmx you can build very nice feeling apps without going all-in wit
by nickjj 6y ago
I still happily use Flask with mostly Jinja rendered templates.
With things like Hotwire and htmx you can build very nice feeling apps without going all-in with an API back-end and JS front-end.
I released https://github.com/nickjj/docker-flask-example https://github.com/nickjj/docker-flask-example as a starter kit for what I use in new projects. It wires up things like SQLAlchemy, Celery, Flask, gunicorn, Webpack, etc. with Docker. It also comes with CLI extensions for digesting / md5 tagging assets with optional CDN support using Flask-Static-Digest, database migrations / seeding with Flask-DB and more.
If I ever need to create API endpoints I combine Flask-Classful (routing), Marshmallow (serialization / validation) and Flask-JWT-Extended (authentication). I've written about this combo at: https://nickjanetakis.com/blog/flask-libraries-for-building-awesome-real-world-restful-apis https://nickjanetakis.com/blog/flask-libraries-for-building-...