Prophecies
APIGithubAbout ICIJAsk for help
  • Introduction
  • Ask for help
  • About ICIJ
  • Github
  • 🌐Getting Started
    • Installation with Docker
    • Key concepts
    • Configure Prophecies
  • ⚡User Guide
    • Upload data as an admin
      • Add a project
      • Add users
      • Add a task
      • Manage a task
    • Check data as a checker
      • Sign in or log in
      • Find a task
      • Read notifications
      • Check records
        • Read tutorial
        • Enter a choice
        • Enter a choice for multiple records
        • Change or cancel a choice
        • Leave a note
        • Open record in new tab
        • Duplicate record
        • Lock record
        • See record's history
      • Search records
      • Filter records
      • Sort records
      • Read shortcuts
      • Read tips
      • Read stats
      • Read history
      • Log out
    • FAQ
  • 🤓Developers
    • Installation from the sources
    • Architecture overview
    • Prophecies API
    • Testing the backend
    • Testing the frontend
    • Continuous integration
    • Publishing a new Docker image
Powered by GitBook

Prophecies is an open source project by the International Consortium of Investigative Journalists

On this page
  • Prerequisites
  • Setup steps
Export as PDF
  1. Developers

Installation from the sources

This guide will explain how to setup Prophecies using the sources.

PreviousFAQNextArchitecture overview

Last updated 1 year ago

Prerequisites

This section describes how to install Prophecies for development. This environment disables many security settings provided by Django and isn't meant to be used for internet-facing instances. For that purpose please follow the .

  • Python 3.9

  • Node 16.x

  • Poetry >= 1.2

  • Yarn 1.x

  • Git

Setup steps

Checkout the repository with git:

git clone git@github.com:ICIJ/prophecies.git
cd prophecies/

After entering the directory, setup a virtualenv with poetry and to install required packages:

make install

To setup the database (using SQLite3 by default):

make migrate

To create a superuser:

make createsuperuser
DEBUG=on
DATABASE_URL=
CACHE_URL=dummycache://
STATIC_URL=/static/
SOCIAL_AUTH_PROVIDER_KEY=
SOCIAL_AUTH_PROVIDER_SECRET=
SOCIAL_AUTH_PROVIDER_HOSTNAME=http://localhost:3001
SOCIAL_AUTH_PROVIDER_USERNAME_FIELD=uid
SOCIAL_AUTH_PROVIDER_GROUPS_FIELD=groups_by_applications.prophecies
SOCIAL_AUTH_PROVIDER_STAFF_GROUP=icijstaff

For more customization, this app utilizes inspired environment variables to configure your Django application. You can create .env file using the custom settings variables:

The application can be configured with .

🤓
installation guide with Docker
12factor
many environment variables