Rapidpro Installation: Difference between revisions

From IHRIS Wiki
Line 9: Line 9:
<ul>
<ul>
<li>PostgreSQL 9.3 or later along with the PostGIS extensions. You probably want to refer to [https://docs.djangoproject.com/en/dev/ref/contrib/gis/install/postgis/ Django’sinstallation instructions] to help get this working.</li>
<li>PostgreSQL 9.3 or later along with the PostGIS extensions. You probably want to refer to [https://docs.djangoproject.com/en/dev/ref/contrib/gis/install/postgis/ Django’sinstallation instructions] to help get this working.</li>
<li>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 (http://redis.io/)</li>
<li>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 [http://redis.io/ redis website]</li>
<li>[http://lesscss.org/ lessc], the Less compiler.</li>
<li>[http://coffeescript.org/ coffee], the Coffee script compiler. You may also install this with
<source lang="xml">
sudo apt-get install coffeescript
</source>
</li>
</ul>
</li>
<li>
Create Temba User For PostgreSQL
<source lang="xml">
sudo -u postgres createuser temba --superuser --pwprompt -d
sudo adduser temba
</source>
</li>
<li>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>

Revision as of 09:03, 14 December 2015

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>