Skip to content

Latest commit

 

History

History
40 lines (39 loc) · 619 Bytes

README.md

File metadata and controls

40 lines (39 loc) · 619 Bytes

Order managment

Running api (development):

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

Running tests:

pytest