Skip to content

jgmartinss/flask-simple-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask Simple Boilerplate

Code style: black GitHub license

Simple boilerplate in Flask.

Dependencies

Installation:

  1. Clone the repository:

    git clone https://github.com/jgmartinss/flask-simple-boilerplate projectname
  2. Install dependencies and create environment:

    cd projectname
    pipenv --python 3.6
    pipenv shell
    pipenv install
    pipenv install -d
  3. Generate a local .env

    python contrib/env_gen.py dev
  4. Synchronize to database:

    make setup
  5. Create a user:

    make createsuperuser
  6. Test the installation in the url http://127.0.0.1:8000:

    make runserver

Run tests:

  1. Flask tests:

    make test
  2. Coverage tests using Tox:

    $ tox
    $ firefox htmlcov/index.html

Releases

No releases published

Packages

No packages published