Skip to content

ewheeler/rapidpro-webhooks

Repository files navigation

Dev Environment

Create your virtual environment

% virtualenv env % source env/bin/activate % pip install -r requirements/dev.txt

Next, get your databases setup. This project uses CouchDB and Postgres.

CouchDB

Simply install CouchDB for your development environment. The necessary catalog will be created as needed automatically.

PostgreSQL

We need some Postgres love too. To initialize, issue the following command:

% python server.py db upgrade

Start the server

To start the server, you need to first set a couple environment variables.

export RPWEBHOOKS_SETTINGS=settings/dev.py export FLASK_APP=app.py flask run