Flask starter project...
- Create and activate a virtualenv
- Install the requirements
Inspect and update project/server/config.py
.
Eg: for using the development config with debug mode enabled
$ export APP_SETTINGS="project.server.config.DevelopmentConfig"
$ export FLASK_DEBUG=1
Alternatively using pipenv or python-dotenv you can define your application configuration in the .env
file.
APP_SETTINGS="project.server.config.DevelopmentConfig"
FLASK_DEBUG=1
$ python manage.py create_db
$ python manage.py db init
$ python manage.py db migrate
$ python manage.py create_admin
$ python manage.py create_data
$ python manage.py run
Access the application at the address http://localhost:5000/
Without coverage:
$ python manage.py test
With coverage:
$ python manage.py cov