Tuesday, March 10, 2015

Mifos X Messenger Installation

Mifos X Messenger, the SMS Messaging System which sends SMS messages at different points in the Mifos X workflow can be installed by following these steps. I've tested out these steps for Debian / Ubuntu and it should be similar for Mac OSX, plus we've also been able to install on Windows, where step 1 is not applicable, but other steps are similar:

1. Install ruby version manager rvm see https://rvm.io/rvm/install:

    \curl -sSL https://get.rvm.io | bash -s stable --rails

2. Download messenger source code:

      git clone https://github.com/SanjoseSolutions/mifosx-messenger.git

3. Install dependencies

   bundle install

4. Configure mifosx-messenger

   setup config.yml

5.  Run messenger

   ruby app.rb

6. Setup Mifos X Webhooks to connect with MifosX Messenger

  In Mifos X go to Admin > System > Manage Hooks
  Click "Create Hook"
  Hook Template: Web

  Active: checked
  Content Type: json
  Payload URL: http://localhost:3000
  Events: transactions_loan : LOAN : REPAYMENT
                transactions_savings: SAVINGSACCOUNT: WITHDRAWAL 
                transactions_savings: SAVINGSACCOUNT: DEPOSIT

More details, video coming soon