Rapidpro Installation

From IHRIS Wiki

Introduction and Overview

RapidPro is an Open Source platform that allows anyone to build interactive messaging systems using an easy visual interface. A video is worth a thousand words and this brief video introduction will give you an idea of what is possible.

Installation

To install Rapidpro,follow the following steps

  1. Prerequisites Installation
    • PostgreSQL 9.3 or later along with the PostGIS extensions. You probably want to refer to Django’sinstallation instructions to help get this working.
    • Redis 2.8 or later installed and listening on localhost. By default the development server uses database 15. You may install this through debian package manager (sudo apt-get install redis-server) or by downloading it on redis website
    • lessc, the Less compiler.
    • coffee, the Coffee script compiler. You may also install this with <source lang="xml"> sudo apt-get install coffeescript </source>
  2. Create Temba User For PostgreSQL <source lang="xml"> sudo -u postgres createuser temba --superuser --pwprompt -d sudo adduser temba </source>
  3. Create temba database, add PostGIS <source lang="xml"> Create the database as temba user: sudo -u temba psql --user=temba postgres postgres=> create database temba; CREATE DATABASE \q </source> Now connect as superuser that can install extensions <source lang="xml"> sudo -u temba psql --user=temba postgres postgres=# \c temba You are now connected to database "temba" as user "psql". temba=# create extension postgis; CREATE EXTENSION temba=# create extension postgis_topology; CREATE EXTENSION temba=# create extension hstore; CREATE EXTENSION </source>