Skip to content

Instantly share code, notes, and snippets.

@drsm79
Created July 29, 2012 13:56
Show Gist options
  • Save drsm79/3198994 to your computer and use it in GitHub Desktop.
Save drsm79/3198994 to your computer and use it in GitHub Desktop.
Creating a view with situp

To create my_view in $PWD/_design/my_design run:

situp.py view -d my_design my_view

This produces a skeleton map.js and reduce.js in $PWD/_design/my_design/views/my_view/. If you want to use a built-in reduce (sum|count|stats) run:

situp.py view -d my_design my_view --count
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment