Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A simple CouchDB application example that works with surveys

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 _attachments
Octocat-spinner-32 views
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE.txt
Octocat-spinner-32 README.markdown
Octocat-spinner-32 couchapprc.example
README.markdown

surveycouch

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

Dependencies

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.

Installing

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.

License

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

Something went wrong with that request. Please try again.