ce11ded78b
Add test coverage report See merge request autonomic-cooperative/ojuso-map!3 |
||
---|---|---|
apps | ||
bin | ||
ojusomap | ||
support | ||
.dockerignore | ||
.gitignore | ||
.gitlab-ci.yml | ||
docker-compose.yml | ||
Dockerfile | ||
environment.sh | ||
environment.template | ||
local.env | ||
local.yml | ||
manage.py | ||
README.md | ||
requirements.txt | ||
setup.cfg | ||
system-requirements.txt | ||
test_requirements.txt |
ojuso-map
Kickass map for the Ojuso Project
Getting Started
Install System Dependencies
$ cat system-requirements.txt | sudo apt-get install -y
Please note, the system dependencies have only been tested on Debian Stretch.
Bootstrap the Virtual Environment
Get your Python 3 environment on the go:
$ python3 -m venv .venv
Configure the Environment
$ export DEBUG=1
$ export DJANGO_SETTINGS_MODULE=ojusomap.settings
Install the Python Dependencies
$ pip3 install -r requirements.txt
If you run into issues with psycopg2
you may need to run the following:
$ pip uninstall psycopg2 && pip install --no-binary :all: psycopg2
Run The Migrations
$ django-admin.py migrate
Run The Tests
$ pip install -r test_requirements.txt
$ pytest -v