This is the flaskr application that is built as part of the Flask tutorial.
I'm currently using this as a testbed for building out flask applications.
-
Create a virtual environment and activate it:
$ mkproject flaskr
$ workon flaskr
-
Install dependencies
$ pip install -r requirements.txt
-
Set Flask environment variables
$ export FLASK_APP=flaskr.py
-
Initialize database
$ flask dbinit
-
Run application
$ flask run
Access application at localhost:5000