couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Copenhaver <>
Subject Re: html5 to couchdb without couchapp
Date Wed, 15 Aug 2012 17:47:07 GMT
Interfacing with CouchDB is nothing special form a client. CouchDB is
literally a web server (embeds MochiWeb) that does REST style requests with
JSON. It has a few special APIs (_replicate, _changes, _design, _bulk_docs)
and the concept of a design document that are special to it.

You can easily interact with CouchDB using jquery AJAX api (my preferred
way for browser side generally) or even XHR. There really isn't anything
special on that front. If you are hiding it behind or interfacing with a
bit of node.js (which can aid in auth/auth control) then nano [1] is quite
nice to work with. But basically you just need an HTTP library.

As for the not wanting your app as a couchapp, I'm going to assuming you
just don't want to upload the attachments of static files over and over.
For local development it certainly means an extra step but for deploy to an
environment it really isn't that different. CouchDB can easily handle
serving them, but if you prefer something like node.js or nginx serving
them I can understand.

If you want any data transformation or views then you'll have to work with
a design document [2] and you'll most likely want to get familiar with one
of couchapp tools [3] which aids in building the document and posting it to


On Wed, Aug 15, 2012 at 1:25 PM, Octavian Damiean <>wrote:

> Well, as with any technology you don't know,  take your time to get used to
> it and to fully understand it and then start using it.
> On Aug 15, 2012 7:13 PM, "john.tiger" <> wrote:
> > On 08/15/2012 08:16 AM, Dale Harvey wrote:
> >
> >> You need to have a proxy so you can made requests from your site to the
> >> CouchDB via the same host, then everything 'just works'
> >>
> >
> > hmm, can you explain this a bit more  - obviously server-server calls
> > provide security - but where does the proxy fit in ?    we have been
> happy
> > using node-http-proxy (nodejs) on some apps.   jquery.couch seems to be
> > something we're looking for making the db calls - frankly, have not had
> the
> > time to look at it too closely yet - maybe this weekend
> >
> >
> >
> >

“The limits of language are the limits of one's world. “ - Ludwig von

"Water is fluid, soft and yielding. But water will wear away rock, which is
rigid and cannot yield. As a rule, whatever is fluid, soft and yielding
will overcome whatever is rigid and hard. This is another paradox: what is
soft is strong." - Lao-Tzu

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message