Skip to content
A simple CouchDB application example that works with surveys
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.



SurveyCouch is a very simple survey application written as a CouchApp. CouchApps are pure JavaScript applications that are hosted from within CouchDB itself.


Note that if you know enough about CouchDB you can install the application without CouchApp. However, this is so inconvenient that I recommend you just install CouchApp.


Create a database called surveycouch and then set up .couchapprc to point to it. For example, copy couchapprc.example to .couchapprc and change the database URL to something appropriate.

Next, push the application into CouchDB by running couchapp push local (if you changed the name of the database location, you'll need to use the same thing here).

Finally, visit http://localhost:5984/surveycouch/_design/surveycouch/index.html to see your application. Note that if you're CouchDB is running on another domain or port you will have to edit the URL accordingly.


This code is copyright (c) 2009 by Jack Moffitt and is available under the Apache License version 2.0. See LICENSE.txt for details.

Something went wrong with that request. Please try again.