- Activate a virtualenv
- Install the requirements
Update project/server/config.py, and then run:
$ export FLASK_APP=project.server
$ export APP_SETTINGS="project.server.config.DevelopmentConfig"
or
$ export FLASK_APP=project.server
$ export APP_SETTINGS="project.server.config.ProductionConfig"
Create the tables and run the migrations:
$ flask db init
$ flask db migrate
$ flask db upgrade
$ flask run
So access the application at the address http://localhost:5000/
Want to specify a different port?
$ flask run --host=0.0.0.0 --port=5000