buildafrica / backend-api

Backend API for Missing Persons Project
https://wecodeafrica.github.io/
2 stars 5 forks source link
backend django postgres python

Missing Persons Archive Backend Build Status

Prerequisites

Project Setup

Set up a virtual environment with a python3.6 interpreter(Ubuntu):

virtualenv --python={PATH_TO_PYTHON3.6} dcmpa
source dcmpa/bin/activate

Install requirements:

pip install -r requirements.txt

OSX Users

If you get an error, you may need to open the requirements.txt file and replace psycopg2==2.8.2 with psycopg2-binary==2.8.3

Create your Postgres Database

Set up environment variables

Prepare Your New Postgres Database

Start django

Deployment