I found a cool technique. Get firefox with firebug plugin. Start firebug console. Fetch a couchdb document in the address bar. Now in the console enter

Eval("var cdbDoc =" + document.body.firstChild.childNodes[0].data +";");

That will load the doc into a JavaScript var called cdbDoc. The you can write all your map, reduce, list, show functions in firefox.

This was what I was looking for.

Thanks for the help.

Sent from my iPhone

On Jun 10, 2010, at 5:11 AM, Nils Breunese <[email protected]> wrote:

Couchapp does the same thing, but is a plain python CLI app ('sudo easy_install -U couchapp' should get you started). Useful in any situation IMHO.

Nils.
________________________________________
Van: Julian Doherty [[email protected]]
Verzonden: donderdag 10 juni 2010 2:40
Aan: [email protected]
Onderwerp: Re: Development tools to use

We're using couch-rest-rails which lets you define a directory structure for
the view functions, and edit them as plain .js files in your favourite
editor, and run a rake task to push them to couch.

Useful if you're developing a rails app with couchdb as the backend, but not
that helpful otherwise.

De informatie vervat in deze e-mail en meegezonden bijlagen is uitsluitend bedoeld voor gebruik door de geadresseerde en kan vertrouwelijke informatie bevatten. Openbaarmaking, vermenigvuldiging, verspreiding en/of verstrekking van deze informatie aan derden is voorbehouden aan geadresseerde. De VPRO staat niet in voor de juiste en volledige overbrenging van de inhoud van een verzonden e-mail, noch voor tijdige ontvangst daarvan.

Reply via email to