Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote Configuration #1

Open
rrubio opened this issue Jun 16, 2015 · 2 comments
Open

Remote Configuration #1

rrubio opened this issue Jun 16, 2015 · 2 comments

Comments

@rrubio
Copy link

rrubio commented Jun 16, 2015

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
Copy link
Member

viskin commented Jun 16, 2015

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
Copy link
Author

rrubio commented Jun 18, 2015

Thanks mate! :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants