Tag Archives: couchdb

Reset CouchDB Instance

It’s really easy to clean up a CouchDB instance as fresh as new. Just delete the database files and .delete folder in /usr/local/var/lib/couchdb and restart the CouchDB service. $ sudo /etc/init.d/couchdb stop $ cd /usr/local/var/lib/couchdb $ sudo rm -rf * … Continue reading

Posted in NoSQL, Ubuntu | Tagged | Comments Off on Reset CouchDB Instance

Tunneling via Putty

When you use putty to log in CouchDB server, you can also set up tunneling to access its admin console restricted to localhost. Here’s the additional configurationĀ over your normal setup.

Posted in Ubuntu | Tagged , , | Comments Off on Tunneling via Putty

Running CouchDB Admin Console Remotely

CouchDB default configuration allows only localhost access to its admin console via Futon or curl. Without compromising server security and access, you can use ssh to tunnel to your CouchDB. Below is how to set up the tunnel. First, make … Continue reading

Posted in Ubuntu | Tagged | Comments Off on Running CouchDB Admin Console Remotely

Testing views in couchdb with curl

Couchdb has REST APIs and it works well with curl. Let’s build a contact database in Futon with following: Documents {"_id": "bill", "name": "bill", "groups": ["friends"], "type": "contact"} {"_id": "john", "name": "john", "groups": ["friends", "coworkers"], "type": "contact"} {"_id": "111-222-3333", "phone": … Continue reading

Posted in NoSQL | Tagged , , , , | Comments Off on Testing views in couchdb with curl