User Tools

Site Tools


api_installation

This is for admin reference only, the API isn't intended for local installation, and indeed won't function with database credentials!

WIP… development.

Setup

sudo apt-get install libpq-dev

pip install virtualenv

Now set up the virtualenv - Reference

mkdir api-env

virtualenv –no-site-packages api-env

cd api-env/bin

source activate

Now we're in the v-env

git clone …

pip install -r requirements.txt

Grab the config.json for database credentials.

Running it..

gunicorn -b 127.0.0.1:8086 -k gevent -w 4 main:app

api_installation.txt · Last modified: 2014/03/16 23:58 by craag