ProfitPlatform reincarnation.
Author: Sergey Sobko [email protected]
ProfitPlatform is a software built on top of RabbitMQ using Erlang/OTP. It is capable of getting requests through JSON-RPC and executing Python code from MessageAPI.
The code is hosted at GitHub.
Check out the latest development version anonymously with:
$ git clone git://github.com/TheProfitwareGroup/profitplatformng.git
$ cd profitplatformng
ProfitPlatform depends on RabbitMQ server. It must be installed first.
From source:
Install the dependencies:
- Rebar (may be installed using your package manager)
- Rebar-friendly version of AMQP client library
- ErlPort
In order to use message channels, first you need to install MessageAPI.
Getting dependencies (after Rebar is installed):
$ rebar get-deps
Compilation:
$ rebar compile
To run development environment (run more times to get automatically configured cloud instances)
$ cp default.config.example default.config
$ erl -pa ebin deps/*/ebin -eval "application:start(profitplatformng)" -config default
Publish message using SMSCPlugin from MessageAPI (default.config must be configured properly):
1> profitplatformng_mq:publish(smsc, [{phones, '79xxxxxxxxx'}, {message, 'Hello, world!'}]).