Skip to content
Jasson edited this page Nov 18, 2011 · 37 revisions

Requirements

I use Linux Debian testing, but ebot can run on any Operating System supporting Erlang

Software

  • erlang interpreter (for debian/ubuntu run “apt-get install erlang”): I use Erlang R14A
  • make (for debian/ubuntu run “apt-get install make”)
  • couchdb server: tested 0.11, see http://couchdb.apache.org/downloads.html, for debian/ubuntu run “apt-get install couchdb”) or riak server (see http://downloads.basho.com/riak/)
  • rabbitmq server 2_4_0 (see http://www.rabbitmq.com/download.html, for debian/ubuntu see http://www.rabbitmq.com/debian.html#apt).

Erlang packages

Couchbeam

git clone http://github.com/benoitc/couchbeam.git
(cd couchbeam && make)

Riak Erlang Client

git clone https://github.com/basho/riak-erlang-client.git
(cd riak-erlang-client && make)

Webmachine

git clone https://github.com/basho/webmachine.git
(cd webmachine && make)

Rabbitmq Erlang Client

In order to compile Erlang Client, you need
to dowload the sources of rabbitmq-codegen and rabbitmq-server

hg clone -r rabbitmq_v2_4_1 http://hg.rabbitmq.com/rabbitmq-codegen/

hg clone -r rabbitmq_v2_4_1 http://hg.rabbitmq.com/rabbitmq-server/
(cd rabbitmq-server && make)

hg clone -r rabbitmq_v2_4_1 http://hg.rabbitmq.com/rabbitmq-erlang-client/
(cd rabbitmq-erlang-client && make)

Installation

  • Download ebot from http://github.com/matteoredaelli/ebot/downloads or with “git clone git://github.com/matteoredaelli/ebot.git”
  • cd ebot
  • In deps/ you need to copy/link the previosly downloaded erlang packages
    - webmachine
    - rabbitmq-erlang-client
    - rabbit_common (move it from rabbitmq-erlang-client/deps)
    - couchbeam
    - riak-erlang-client (tested 0.14.1)
  • Configure your preferred db backend (Couchdb or Riak) in src/ebot.hrl
  • Configure DB port in src/ebot.app: {db_port, 5984} for Couchdb or {db_port, 8087} for Riak
  • run “make”

Couchdb Backend

Create the database ebot with the web console
http://localhost:5984/_utils/

Riak Backend

Is the bucket “ebot” created automatically? maybe not… yes