mod_couch : embedding ecouch client for CouchDB in ejabberd

Quick and dirty :

  • checkout, compile and copy the ecouch directory somewhere erlang will find it. Mine is /usr/local/lib/erlang/lib

  • download this, compile, copy the beam file in the ejabberd ebin directory.

  • in ejabberd.cfg :


{modules, [
.
.
.
.
  {mod_couch,     [{server,{"127.0.0.1", "5984"}}]},
.
.
.
]}
  • restart ejabberd

  • You now have access to your CouchDB server within ejabberd.

4 comments so far

  1. laurent on

    Yo ! I like when you speak quick and dirty like that !

  2. Mickaël Rémond on

    Nice. You can commit it in ejabberd-modules if you want.
    Next step is to support read/write through disco🙂
    I might have a look when I find some time.

  3. Saimon Moore on

    Could you provide usage examples?

  4. cstar on

    @mickael : did not think of it. But that’s a pretty neat idea
    @Saimon : basically once is configured, you use the ecouch module. Documentation for this module is http://code.google.com/p/ecouch/wiki/APIDocumentation

    And I am adding a link to the ecouch project🙂 Guess I was too quick and too dirty, Laurent


Comments are closed.

%d bloggers like this: