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
ebindirectory. -
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
Comments are closed.
Yo ! I like when you speak quick and dirty like that !
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.
Could you provide usage examples?
@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