In Molokoloco | 16 Apr 2011 | Laisser un commentaire
Shared by molokoloco
Sur le site de ParisJS, une excellente introduction à CoucheDB (entre autre ;)
Un autre chouette slide ici… http://couchdb-jaoo.heroku.com
Base NoSQL orientée document (sans schéma)
Comparable à MongoDB, mais embrasse le web :
Everything is HTTP :
GET /jaoo HTTP/1.1 200 OK ... {"db_name":"jaoo","doc_count":0,"doc_del_count":0, "update_seq":0,"purge_seq":0,"compact_running":false, "disk_size":79,"instance_start_time":"1286130434654709", "disk_format_version":5}
Code sample :
function(header, request) { var row; start(headers: {'Content-Type': 'text/html'}) send('<html><body>') while (row = getRow()) { send('<h1>' + row.value.name + '</h1>') } send('</body></html>') }
The Apache CouchDB Project
Apache CouchDB is a document-oriented database that can be queried and indexed in a MapReduce fashion using JavaScript. CouchDB also offers incremental replication with bi-directional conflict detection and resolution.
CouchDB provides a RESTful JSON API than can be accessed from any environment that allows HTTP requests.
Git Repository : https://github.com/apache/couchdb
In Shared Items | 2 Jun 2010

JSONView is a new Firefox extension that gives you a nice way to view your JSON documents (JSONovich also does the trick).
Ben Hollis talks about the extension:
The extension itself is pretty simple. I wasn’t sure how to approach the problem of supporting a new content type for Firefox, so I followed the example of the wmlbrowser extension and implemented a custom nsIStreamConverter. What this means is that I created a new component that tells Firefox “I know how to translate documents of type application/json into HTML”. And that it does – parsing the JSON using the new native [...]
MyBookReadR | The RSS Wall | Carousel slider | Fast web start | Try it :)
My latest sources and sheets :
Github sources | Personnal wiki | jsFiddle example | WebDev bookmark