source venv/bin/activate flask --app=main --debug run
Run in development
You need two terminals open to run the webpack dev server and flask at the same time.
For flask do:
this will serve the flask backend on
Then for webpack you do:
$ npm run hot-dev-server
This will start the webpack-dev-server in hot-reload mode on
Now point your browser to
All changes you now do to either flask backend or webpack frontend files will trigger a hot-reload in the browser. Enjoy!