2017-10-06 18:15:28 +00:00
|
|
|
[![Translation](http://translate.ojuso.org/widgets/platform/-/svg-badge.svg)](http://translate.ojuso.org/engage/platform/?utm_source=widget)
|
2018-04-12 19:25:46 +00:00
|
|
|
[![pipeline status](https://gitlab.com/autonomic-cooperative/ojuso-map/badges/master/pipeline.svg)](https://gitlab.com/autonomic-cooperative/ojuso-map/commits/master)
|
|
|
|
[![coverage report](https://gitlab.com/autonomic-cooperative/ojuso-map/badges/master/coverage.svg)](https://gitlab.com/autonomic-cooperative/ojuso-map/commits/master)
|
|
|
|
|
|
|
|
# ojuso-map
|
2017-10-06 18:15:28 +00:00
|
|
|
|
2017-05-18 15:20:15 +00:00
|
|
|
Kickass map for the Ojuso Project
|
2018-04-08 20:22:31 +00:00
|
|
|
|
2018-04-12 19:25:46 +00:00
|
|
|
# Getting Started
|
|
|
|
|
|
|
|
## Install System Dependencies
|
2018-04-08 20:22:31 +00:00
|
|
|
|
2018-05-19 17:47:30 +00:00
|
|
|
### Debian
|
|
|
|
|
2018-04-08 20:22:31 +00:00
|
|
|
```bash
|
2018-05-19 17:47:30 +00:00
|
|
|
$ cat system-requirements-debian.txt | sudo apt-get install -y
|
2018-04-08 20:22:31 +00:00
|
|
|
```
|
|
|
|
|
2018-05-19 17:47:30 +00:00
|
|
|
### Fedora
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ cat system-requirements-fedora.txt | sudo dnf install
|
2018-04-12 19:25:46 +00:00
|
|
|
|
|
|
|
## Bootstrap the Virtual Environment
|
|
|
|
|
|
|
|
Get your Python 3 environment on the go:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ python3 -m venv .venv
|
|
|
|
```
|
|
|
|
|
|
|
|
## Configure the Environment
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ export DEBUG=1
|
|
|
|
$ export DJANGO_SETTINGS_MODULE=ojusomap.settings
|
|
|
|
```
|
|
|
|
|
|
|
|
## Install the Python Dependencies
|
|
|
|
|
|
|
|
```bash
|
2018-04-23 05:15:33 +00:00
|
|
|
$ pip3 install -r requirements-devel.txt
|
2018-04-12 19:25:46 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
If you run into issues with `psycopg2` you may need to run the following:
|
|
|
|
|
|
|
|
```bash
|
2018-04-23 05:15:33 +00:00
|
|
|
$ pip3 uninstall psycopg2 && pip3 install --no-binary :all: psycopg2
|
2018-04-12 19:25:46 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## Run The Migrations
|
|
|
|
|
|
|
|
```
|
2018-04-12 19:47:40 +00:00
|
|
|
$ python manage.py migrate
|
2018-04-12 19:25:46 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## Run The Tests
|
|
|
|
|
|
|
|
``` bash
|
2018-05-01 17:30:42 +00:00
|
|
|
$ pip install -r requirements-test.txt
|
2018-04-12 19:25:46 +00:00
|
|
|
$ pytest -v
|
|
|
|
```
|