Adapted from https://github.com/realpython/flask-skeleton/tree/master/project
Using Materialize CSS
- Activate a virtualenv
- Install the requirements
Update project/server/config.py, and then run:
$ export APP_SETTINGS="project.server.config.DevelopmentConfig"
or
$ export APP_SETTINGS="project.server.config.ProductionConfig"
$ 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 runserver
So access the application at the address http://localhost:5000/
Without coverage:
$ python manage.py test
With coverage:
$ python manage.py cov