Decouple front from back
Problem to solve
The front depends on the backend to serve its index.html via templates
Intended users
Product devs
User experience goal
Separation of concerns, fully embrace the concept of a single-page application
Proposal
-
Set up https://webpack.js.org/plugins/html-webpack-plugin/ to generate the index.html on both build time and locally -
Serve the front as a static file https://www.starlette.io/staticfiles/ -
Remove def app
from app.py -
Remove the app.html and login.html templates and other unused code resulting from this change
Edited by David Acevedo