python3 -m venv venv
pip install -r requirements.txt
- With venv activated
python setup.py develop
npm install
npx webpack
FLASK_APP=tracker.py flask db upgrade
FLASK_APP=tracker.py flask generate-fixtures
FLASK_APP=tracker.py flask run -h 0.0.0.0 -p 5000
If you need to make a migration do:
FLASK_APP=tracker.py flask db migrate -m "Description ..."
FLASK_APP=tracker.py flask db upgrade
To have Webpack run and watch for changes do:
npx webpack --watch
The following command will generate the config files needed to set this up on a server.
FLASK_APP=tracker.py flask generate-deployment-configs --host tracker.zay.io --application-root /var/www/tracker/code/bitcoinutils
- Follow the printed out instructions