lang / couch-shell Goto Github PK
View Code? Open in Web Editor NEWA basic CouchDB shell.
License: GNU General Public License v3.0
A basic CouchDB shell.
License: GNU General Public License v3.0
couch-shell is a basic shell to interact with a CouchDB server. Install with rubygems: $ sudo gem install couch-shell Only tested with Ruby 1.9! Example session: $ couch-shell 127.0.0.1:5984 couch-shell 0.0.8 Set server to http://127.0.0.1:5984 GET / 200 OK vars: r0, j0 { "couchdb": "Welcome", "version": "1.0.1" } >> cput contacts PUT /contacts 201 Created vars: r1, j1 { "ok": true } GET /contacts 200 OK vars: r2, j2 body has 213 bytes contacts >> post {"name":"Jim", "email":"[email protected]"} POST /contacts 201 Created vars: r3, j3 { "ok": true, "id": "37425dfe6340ac376572f5042f000de1", "rev": "1-aefa5e0e3de5ac4fcc0e28b725f1d898" } contacts >> cd $(id) contacts/37425dfe6340ac376572f5042f000de1 >> get GET /contacts/37425dfe6340ac376572f5042f000de1 200 OK vars: r4, j4 { "_id": "37425dfe6340ac376572f5042f000de1", "_rev": "1-aefa5e0e3de5ac4fcc0e28b725f1d898", "name": "Jim", "email": "[email protected]" } contacts/37425dfe6340ac376572f5042f000de1 >> member name "Jim Thompson" PUT /contacts/37425dfe6340ac376572f5042f000de1/?rev=1-aefa5e0e3de5ac4fcc0e28b725f1d898 201 Created vars: r5, j5 { "ok": true, "id": "37425dfe6340ac376572f5042f000de1", "rev": "2-6640ecdc0102456c7b924768e5bbc4c1" } contacts/37425dfe6340ac376572f5042f000de1 >> get GET /contacts/37425dfe6340ac376572f5042f000de1 200 OK vars: r6, j6 { "_id": "37425dfe6340ac376572f5042f000de1", "_rev": "2-6640ecdc0102456c7b924768e5bbc4c1", "name": "Jim Thompson", "email": "[email protected]" } contacts/37425dfe6340ac376572f5042f000de1 >> exit bye
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.