Does anyone know how to serve an Angular single page application using Flask?
I\'m having trouble serving the default route, \'/\', which should load index.html and
As mentioned in Flask docs:
Just create a folder called static in your package or next to your module and it will be available at /static on the application.
So, if you use the template in:
templates/dist/templates/index.html
static/ # set static folder there
Or, depending how you have your application sorted:
templates/dist/static/ # set static folder there
Have a look at how they sort the application in the docs:
/application.py
/templates
/hello.html
or if you use module folders:
/application
/__init__.py
/templates
/hello.html