Talk i gave at Nosqlday with Giordano Scalzo on March 25th 2011.
It's about how CouchDB can replace a full serverside mvc stack making development of simple web apps a piece of cake
Also
http://federico.galassi.net/
http://www.nosqlday.it/
http://couchdb.apache.org/
Follow me on Twitter!
https://twitter.com/federicogalassi
40. Last technology cycle
WE WERE HERE
MVC peak of
inflated
expectation
Visibility
productivity
disillusionment obsolescence
technology
trigger
maturity
41. Last technology cycle
peak of
inflated
expectation
NOW HERE
Visibility
productivity
disillusionment obsolescence
technology
trigger
maturity
42. Last technology cycle
peak of
inflated
expectation
IF YOU’RE
Visibility
AT THIS CONF
productivity
YOU MAY BE
ALREADY HERE
disillusionment obsolescence
technology
trigger
maturity
60. Built of the Web
“Django may be built for the Web,
but CouchDB is built of the Web.
I’ve never seen software that so
Jacob Kaplan-Moss
completely embraces the Co-creator of Django
philosophies behind HTTP.”
61. Restful API
GET / Returns MOTD
GET /_all_dbs List of databases
POST /_restart Restart the server
GET /_log Tail of the server’s log
GET /_config Entire server config
GET /_config/<section>/<key> Single config value
PUT /_config/<section>/<key> Set a single config value
GET /<db> Database info
PUT /<db> Create new database
DELETE /<db> Delete database
GET /<db>/<doc> Latest revision of the document
PUT /<db>/<doc> Insert a new revision of the document
... and everything else
62. Javascript to
program
// MAP
function(doc) {
if(doc.date && doc.title) {
emit(doc.date, doc.title);
}
}
63. JSON to
exchange data
{
"_id":"hello-‐world",
"_rev":"43FBA4E7AB",
"title":"Hello World",
"body":"Well hello and welcome to my new blog...",
"date":"2009/01/15 15:52:20"
}