PEV2 Flask application
pip install -r requirements.txtCreate a config file.
cp config.py instanceModify the config.py file in the instance directory if needed.
Run a Postgres instance in a docker container:
docker run -p 5433:5432 --rm --name explain -e POSTGRES_PASSWORD=postgres -d postgresCreate the DB:
FLASK_APP=app flask db upgrade
FLASK_APP=app python -m flask rundocker compose up -d
docker compose run web flask db upgradeOpen http://0.0.0.0:5001/ in your browser.
Requires Node > 16
npm install
npm run buildYou can also run the app in DEBUG mode. In this case, run the following commands in two consoles.
npm run devFLASK_DEBUG=1 FLASK_APP=app python -m flask rungit tag -a vx.x.x -m "x.x.x"
git push --tags