Windows-oriented Flask starter application.
- Create and activate a virtualenv
- Install the requirements
git clone <this_repo>
cd <this_repo>
virtualenv env
.\env\scripts\activate.ps1
Update project/server/config.py, and then run:
set-variable -name "APP_SETTINGS" -value "project.server.config.DevelopmentConfig"
or
set-variable -name "APP_SETTINGS" -value "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
With debug mode:
set-variable -name "FLASK_DEBUG" -value True; python manage.py run
Without debug mode:
set-variable -name "FLASK_DEBUG" -value False; 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