Investigative Dashboard Project
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
api_v3
.coveragerc
.dockerignore
.gitignore
.travis.yml
Dockerfile
LICENSE
README.md
docker-compose.dev.yml
docker-compose.prod.yml
id.env.tmpl
manage.py
nginx.conf
requirements-testing.txt
requirements.txt
setup.cfg

README.md

The Investigative Dashboard Project API 🕵️

Build Status Translation status

OCCRP research desk application API.

Prerequisites

Setup

Please refer to the id.env.tmpl for the full list of settings.

Create a superuser to login to the admin:

docker-compose run --rm api ./manage.py createsuperuser

Start the dev server for local development or production:

docker-compose up

Please see the docker-compose.prod.yml for production ready deployments.

Running the tests

To run the tests, use the docker-compose.dev.yml configuration and run:

docker-compose run --rm api ./manage.py test

Preparing a release

To build the production-ready images run:

docker build --build-arg=ID_VERSION=$(git describe --always) -t occrp/id-backend ./

You're now ready to continuously ship! 💅 🛳