Skeleton of a Flask application using SQLAlchemy, pytest and advanced settings management.
$ pip install -r requirements_dev.txt -e .
Create a PostgreSQL DB called skeleton
or tweak config via 'instance/instance.py' file.
$ export FLASK_APP=dev
$ flask initdb --fixtures
There are files called dev.py and prod.py in root directory:
$ export FLASK_APP=dev
$ flask run
Before launching tests, you need to create a PostgreSQL DB called skeleton_test
.
$ ./setup.py test
$ py.test --durations=3 -s --pdb