couchapp

CouchDB: Single document vs “joining” documents together

浪尽此生 提交于 2019-12-03 08:10:42
I'm tryting to decide the best approach for a CouchApp (no middleware). Since there are similarities to my idea, lets assume we have a stackoverflow page stored in a CouchDB. In essence it consists of the actual question on top, answers and commets. Those are basically three layers. There are two ways of storing it. Either within a single document containing a suitable JSON representation of the data, or store each part of the entry within a separate document combining them later through a view (similar to this: http://www.cmlenz.net/archives/2007/10/couchdb-joins ) Now, both approaches may be

User Signup in Couchapp/CouchDB through jquery.couch.js or Otherwise

狂风中的少年 提交于 2019-11-30 13:17:51
Background Right now, I'm trying to build an app with couchDB/couchapp that would store persistent and crucial information from the user, and am stuck on the steps required for user signup with couchapp. Essentially, what I want to do is to have a simple signup form that users can use to register an account for using my app. This would entail creation of a new user in the couchdb _users database, and the creation of a new database, with the new user assigned the role of database admin. All that requires server admin credentials. Ideally, I'd love to be able to make a call using one of the

User Signup in Couchapp/CouchDB through jquery.couch.js or Otherwise

江枫思渺然 提交于 2019-11-29 19:34:11
问题 Background Right now, I'm trying to build an app with couchDB/couchapp that would store persistent and crucial information from the user, and am stuck on the steps required for user signup with couchapp. Essentially, what I want to do is to have a simple signup form that users can use to register an account for using my app. This would entail creation of a new user in the couchdb _users database, and the creation of a new database, with the new user assigned the role of database admin. All