Create and activate the virtual environment:
python -m venv venv
source venv/bin/activate
Install the dependencies:
pip install -r requirements.txt
The migrations
folder was initialized using:
flask db init
Then the versions
folder populated using:
flask db migrate -m "Initial revision"
Finally run the migrations:
flask db upgrade
For development you can run the app with auto-reload for the .py
files:
flask --app app.py --debug run