couchdb - Couchapp directory structure, updates? -
when generating new couchapp, structure:
appname ├── _attachments │ └── style ├── evently │ ├── items │ │ └── _changes │ └── profile │ └── profileready │ └── selectors │ └── form ├── lists ├── shows ├── updates ├── vendor │ └── couchapp │ ├── _attachments │ ├── evently │ │ ├── account │ │ │ ├── adminparty │ │ │ ├── loggedin │ │ │ ├── loggedout │ │ │ ├── loginform │ │ │ │ └── selectors │ │ │ │ └── form │ │ │ └── signupform │ │ │ └── selectors │ │ │ └── form │ │ └── profile │ │ ├── loggedout │ │ ├── noprofile │ │ │ └── selectors │ │ │ └── form │ │ └── profileready │ └── lib └── views └── recent-items now, since structure meant reflect json structure of couchdb _design document, figured out:
[_attachments] attachments stored binary. javascript, css, , html files stored here.
[evently] ???
[lists] lists javascript functions executed render html or atomfeeds view results.
[shows] show functions analogue list functions, render content transforming document other formats (such html, xml, csv, png).
[updates] ???
[vendor]home of external libraries.
[views]view contain mapreduce functions can later queried though http api (see \ref{couchdb:views}).
appart me being not wrong filled out descriptions, how describe updates directory? hosting validation functions?
the second question how describe evently directory...
if there summary existing, please point me it!
kind regards!
the generate command builds backbone document format couchdb needs; , builds web app development framework, evently. don't know evently well; gives developer tools , suggestions make ui , couch interact.
personally, never use couchapp generate command. create _id file scratch (echo -n _design/whatever > _id), create folders , files need them.
list functions (one per file) receive _view output produce http response (e.g. xml rss).
show functions (one per file) receive 1 document produce http repsonse.
update functions (one per file) receive 1 http query , output 1 prepared document stored couch. (for example, receiving form submission , building json document.)
view functions (one map.js , 1 reduce.js in folder) couchdb views , provide querying , stuff.
i'm not sure updates , vendor. aren't relevant couchdb server.
Comments
Post a Comment