I had occasion tonight to give a quick demo of CouchDB. This is so simple its almost not worth blogging about, but hey, good software is supposed to be simple.
Install
On your Mac:
sudo port install couchdb sudo launchctl load -w /Library/LaunchDaemons/org.apache.couchdb.plist
On Ubuntu:
sudo apt-get install couchdb
You’re done; now to play.
Futon Admin Interface
This allows you to create a DB, create records, etc.
- Open http://localhost:5984/_utils/
- …
- Prosper
Using our old friend curl
curl -X PUT http://localhost:5984/mlg/ #create a db
curl -X GET http://localhost:5984/mlg/ #get a whole bunch of info about the db
curl -X POST http://localhost:5984/mlg/ -H "Content-Type:application/json" -d '{"body": "Here is a paragraph"}' #create a record
