[Helma-user] CouchDB beginnings

Philip Weaver philmaker at gmail.com
Mon Dec 10 12:16:24 CET 2007


Nice work, Joshua. I hope to try it out soon. It would be cool if Helma's
internal database were one day also JSON based but this is an excellent move
with CouchDB.

I've been working with Persevere server for a few days. Technologically it
is really cool - is Rhino based, supports JSONPath, running Javascript on
the server via JSON-RPC, supports multiple data sources. However it is beta
software and I'm working through a few issues.

Phil

On Dec 9, 2007 12:28 AM, Joshua Paine <joshua at papercrown.org> wrote:

> FYI, I've ported the basic CouchDB javascript lib that comes with
> CouchDB from browser XMLHttpRequest, etc. to helma.Http. In so doing I
> had to work through a bug in helma.Http, so if you want to use this
> you'll need to make the changes to your local modules/helma/Http.js that
> I suggest in:
>
> <http://helma.org/bugs/show_bug.cgi?id=583>
>
> And then get the CouchDB lib from:
>
> <http://helma.pastebin.com/f7082c07e>
>
> Once you have patched Http.js and included CouchDB.js, you can do easy
> stuff like this:
>
> var c = new CouchDB('testing','localhost',8888);
> c.createDb();
> c.save({ title:'Testing', content:[1,2,3] });
>
> Congrats! You just created a DB and saved a document in it.
>
> See
> <
> http://jan.prima.de/~jan/plok/archives/108-Programming-CouchDB-with-Javascript.html<http://jan.prima.de/%7Ejan/plok/archives/108-Programming-CouchDB-with-Javascript.html>
> >
> for a sample client-side app and the docs at
> <http://www.couchdbwiki.com/index.php?title=HTTP_REST_API>.
>
> -Joshua
> _______________________________________________
> Helma-user mailing list
> Helma-user at helma.org
> http://helma.org/mailman/listinfo/helma-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://helma.org/pipermail/helma-user/attachments/20071210/d594b4c4/attachment.html 


More information about the Helma-user mailing list