terikon / kendo-pouchdb

Kendo UI DataSource adapter for PouchDB
MIT License
12 stars 2 forks source link

Remote Configuration #1

Open rrubio opened 9 years ago

rrubio commented 9 years ago

Firstly thank you for the library! looks great!

Just a little confused on where to set up the remote database, would i need to create a separate app.js file with the standard pouchdb functionality to sync? I'm using couchdb.

viskin commented 9 years ago

Thank you.

Yes, you should configure pouchdb as usual to sync with couchdb. Then you provide db object to the transport of datasource you create. Your initialization code will be like this:

new PouchDB(...)
   .then(function (db) {
      //initialize kendo.data.PouchableDataSource using db
   });
rrubio commented 9 years ago

Thanks mate! :-)