Simple boilerplate in Flask.
-
Clone the repository:
git clone https://github.com/jgmartinss/flask-simple-boilerplate projectname
-
Install dependencies and create environment:
cd projectname pipenv --python 3.6 pipenv shell pipenv install pipenv install -d
-
Generate a local
.env
python contrib/env_gen.py dev
-
Synchronize to database:
make setup
-
Create a user:
make createsuperuser
-
Test the installation in the url http://127.0.0.1:8000:
make runserver
-
Flask tests:
make test
-
Coverage tests using
Tox
:$ tox $ firefox htmlcov/index.html