-
13 Jun 2012 3:06 PM #1
Documentation missing: Example or Tutorial for CouchDB or other noSQL database
Documentation missing: Example or Tutorial for CouchDB or other noSQL database
For Architect 2
Please give us a simple list of components and steps to get to CouchDB data.
Maybe with two stores - readOnlyStore and readWriteStore
Please include- Which store/proxy/reader to use
- How to set it up in Architect
- How to get CouchDB to replicate data locally (from remote) and remotely (from local updates).
- Have a slightly complex record with header / details
- How to show in list and details panel - using Architect
Thanks for the great work you do.
-
13 Jun 2012 7:18 PM #2
I'm not sure this is a bug ;p
Though I wouldn't mind a community member doing a post about use Architect and CouchDBPhil Strong
@philstrong
#SenchaArchitect
Sencha Architect Development Team
-
14 Jun 2012 1:06 AM #3
Well what do you call missing docs. Its not only with couchDB - that's just the best example of the needed functionality.
All I need is a cryptic answer on each of the items I wrote. I'll try to do it.
Example of answer I would hope to get from you guys:
Q. Which store/proxy/reader to use?
A. Memory/JsonP/Json
Q. How to set up in Architect
A. * Store config: { userClassName:FooStore alias:fooStore
* CouchDB view: { fooView: deptId, deptName -- { prodId, prodName
* FooStore.blabla add Fn: { code:
Q. How to get CouchDB to replicate data locally (from remote) and remotely (from local updates).Code:foo bar(lepsum ripmus);
A. * FooStore.AutoDoodle : true
* FooController.load: code: {
Code:// there var couchUrl = SenchaEasy.MakeUrl("http", "senchaCouch.org", ouchDb); var encryptedPass = SenchaEasy.EncryptPassGenious("nobody.William.fever.guest.thus12"); Couch.Replicate(local2Remote, username, encryptedPass, couchUrl); // and back var encryptedPass = SenchaEasy.EncryptPassGenious("of.Kourse.dets.note.mine.pashvert1$#@!");
-
14 Jun 2012 7:45 PM #4
Likely you'd be using a custom store that would be included using application requires.
I found this: http://wiki.apache.org/couchdb/GettingStartedWithExtJS
In truth I haven't played with CouchDb yetPhil Strong
@philstrong
#SenchaArchitect
Sencha Architect Development Team
-
15 Jun 2012 5:36 AM #5
I saw that. But from an "Architect" standpoint, I didn't know how to implement that.
Could you spend a few minutes on it, just for insights. You don't need to actually fix the project.
I'll follow your leads and get a full blown example working.
-
18 Jun 2012 7:18 AM #6
Yeah so you would be adding the pre-built 3rd party store that was mentioned before either to the local folder so it's hosted together with the project or elsewhere reachable by url.
Adding a javascript resource to your project
url: resources/couchstore/store.js (clearly just making this up)
Then you could certainly add code your application launch that created a new Ext.ux.data.CouchStore with a particular store id
Then assign that store id to your combo, grid, etc ...Phil Strong
@philstrong
#SenchaArchitect
Sencha Architect Development Team
-
20 Jun 2012 3:16 AM #7
Will I see that storeID in my listView config for Store, in the Architect 2 config inspector?
-
21 Jun 2012 10:30 AM #8
No but you can type it in easily
Phil Strong
@philstrong
#SenchaArchitect
Sencha Architect Development Team


Reply With Quote