4 ms·
I really enjoy using FastAPI[0], but I miss the power of Django's admin panel, and Flask's tight integration with Jinja[1]. There's a number of "full-stack tem
by ttymck 5y ago
I really enjoy using FastAPI[0], but I miss the power of Django's admin panel, and Flask's tight integration with Jinja[1].
There's a number of "full-stack templates" available for FastAPI, but they all seem to favor javascript-based clients over server-side templates. I decided to cobble together my own FastAPI "template", with some nice improvements. It tries to mimic the experience of starting a new Django or Flask app. The main feature is likely the integration of Flask-Admin[2], using FastAPI's WSGI interface. Authentication and authorization might get hairy, but I've provided the basic implementation for the user to build upon.
I hope to one day rewrite Flask-Admin from scratch for ASGI apps (and FastAPI in particular, for its wonderful dependency injection).
Let me know what you'd like to see added or improved upon in this boilerplate!
[0] https://fastapi.tiangolo.com/ https://fastapi.tiangolo.com/
[1] https://flask.palletsprojects.com/en/2.0.x/templating/ https://flask.palletsprojects.com/en/2.0.x/templating/
[2] https://github.com/ttymck/fastapi-fullstack-boilerplate/blob/master/docs/index.md#flask-admin https://github.com/ttymck/fastapi-fullstack-boilerplate/blob...