git clone https://github.com/jerry-le/catalog-item-backend-api
Create a virtual environment from requirements.txt
and enable it.
- From conda
conda create -n flask-env python=3.5
pip install -r requirements.txt
source activate flask-env
- From virtualenv
virtualenv flask-env
source flask-env/bin/activate
pip install -r requrements.txt
(flask-env) export FLASK_APP=autoapp.py
(flask-env) export FLASK_ENVIRONMENT=dev # For development env
(flask-env) export FLASK_ENVIRONMENT=prod # For production env
(flask-env)flask run --with-threads -h 0.0.0.0 -p 5000
(flask-env) flask test
(flask-env) flask urls