Skip to content

Commit

Permalink
opening browser with a few view scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Bush committed Jun 1, 2011
1 parent f8ef548 commit c325439
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion map-reduce/setup.sh
Expand Up @@ -15,4 +15,9 @@ for f in views/*.json
do
id=$(basename ${f%%.json})
curl -X PUT localhost:5984/map-reduce-samples/_design/$id -H "Content-Type: application/json" --data @$f
done
done

open http://localhost:5984/map-reduce-samples/_design/purchases/_view/by_date?reduce=false
open http://localhost:5984/map-reduce-samples/_design/purchases/_view/by_date?group_level=1
open http://localhost:5984/map-reduce-samples/_design/purchases/_view/by_date?group_level=2
open "http://localhost:5984/map-reduce-samples/_design/purchases/_view/by_date?startkey=[2011]&endkey=[2011,{}]"

0 comments on commit c325439

Please sign in to comment.