learning from the the-flask-mega-tutorial
python3.7 -m venv flask_env
# connect to virtual env
source flask_env/bin/activatepip install -r requirements.txt
# if you have installed new packages and need to save them, you can use the following
pip freeze > requirements.txt# Flask needs to be told how to import it, by setting the FLASK_APP environment variable
export FLASK_APP=microblog.py
# start server
flask run