Install Redis:
sudo apt-get install redis
Start Redis server:
redis-server
Virtual environment:
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
Export flask environmental variables:
export FLASK_APP=application
export FLASK_ENV=development
Initializing DB tables:
flask db init
flask db migrate
flask db upgrade
(optional) Populate "products" and "users" tables:
python populate_db.py
Running flask server:
flask run
pytest