A simple sample that connect angularjs with couchdb by $resource