My version of the Flask Mega Tutorial
Virtual environment is called flaskapp, probably should have called venv per convention
$ source flaskapp/Scripts/activate # for windows when using GitBash
$ export FLASK_APP=microblog.py (or use set on windows when not using bash)
$ flask run
App then available locally at:
Uses flask-migrate which integrates flask with alembic
$ flask db init # initialising the migration
$ flask db migrate -m ""
$ flask db upgrade # follow through with migration plan
function 'make_shell_context()' sets up an environment for testing in the shell.
$ flask shell # for running the shell