node.jscouchdbcradle

What's a recommended way to put CouchDB views under source control?


I'm writing a node CRUD app that requires a few CouchDB views (I'm using express and cradle).

I've got the node app itself controlled with git, but my DB views are currently uncontrolled.

What's the recommended way to put these under source control? I don't want to put the entire database (including data) under source control.


Solution

  • Take a look at couchapp, http://couchapp.org/. You can use that to push your version-controlled design docs to a database.