Re: CouchDB beginnings
"Philip Weaver" <[email protected]> Mon, 10 Dec 2007 05:16:24 -0600
| Newsgroups | gmane.comp.java.helma.general |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> 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 > [email protected] > http://helma.org/mailman/listinfo/helma-user > _______________________________________________ Helma-user mailing list [email protected] http://helma.org/mailman/listinfo/helma-user