PDA

View Full Version : Databases



AnaMMedina21
23 Jun 2011, 1:06 PM
How do you implement databases, like how Pier1 has it?

http://m.pier1.com/

Where they have a database for their store locations, and product list.

rockinthesixstring
23 Jun 2011, 1:43 PM
The way I've done this to build a separate server side web application that delivers all the data via JSON. Then I attach my Data.Store to the JSON response.

To implement a client side database, you'll want to build out some files that contain JSON data. I haven't tested this myself, but you might be able to work with NoSQL like CouchDB or MongoDB.

jmclem
23 Jun 2011, 9:55 PM
or you can use a LocalStorage proxy: http://dev.sencha.com/deploy/touch/docs/?class=Ext.data.LocalStorageProxy

Jean-Marie.