- Python 3.6+
- Node.js 12 (you can use nvm -
nvm install 12
,nvm use 12
)
Create virtual environment.
python3 -m venv venv
Activate virtual environment.
. venv/bin/activate
Install requirements within virtual environment.
pip install -r requirements.txt
Install front-end dependencies.
npm install
Compile static files.
npm run build
Activate virtual environment
. venv/bin/activate
Start the server.
FLASK_ENV=development flask run
If you want to make change static files (e.g. JavaScript), please run a build watcher that will re-build static assets on a file change.
npm start