- Python 3.6
- pipenv
export PIPENV_VENV_IN_PROJECT=1
pipenv --python 3.6
pipenv shell
make install-requirements-dev
python manage.py migrate
-
Pre populate database
python manage.py loaddata dump_free_fair.json
with data from the city hall -
Run server
python manage.py runserver
-
Access http://localhost:8000/v1 to list urls api
Access http://localhost:8000/docs/ to list documentation api
- run
python manage.py shell
from apps.core.scripts.import_csv_to_database import insert_csv_to_databse
insert_csv_to_databse('path_file')
Execute tests and generate docs coverage in folder htmlcov
make test
Acesse folder htmlcov to show coverage docs
make pep8
make formatter