My implementation of the Flask official tutorial.
clone the repo
git clone https://github.com/wpnbos/flask-tutorial
navigate to directory
cd flask-tutorial
create a virtual environment
python3 -m venv venv
activate the environment
. venv/bin/activate
install flask
pip install flask
setup environment variables
export FLASK_ENV=development
export FLASK_APP=flaskr
initialize database
flask init-db
run server
flask run
navigate to 127.0.0.1:5000
!