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