Trucs de geek

mod_couch : embedding ecouch client for CouchDB in ejabberd

Posted on September 16, 2008

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.

Comments
  1. laurentSeptember 16, 2008 @ 03:42 PM

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

  2. Mickaël RémondSeptember 16, 2008 @ 05:04 PM

    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 MooreSeptember 16, 2008 @ 08:28 PM

    Could you provide usage examples?

  4. cstarSeptember 16, 2008 @ 09:10 PM

    @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

Post a comment
Comment