Creating a Multiple User App with PouchDB & CouchDB



By - Josh Morony

In a previous tutorial I covered how to create an offline application that syncs with a remote database when online. We created a todo application that used PouchDB to store data locally, which synced with a remote CouchDB database. If you’re not already familiar with CouchDB, it is a document based NoSQL database (rather than a typical relational database). If you’re also not familiar with NoSQL, I wrote a quick introduction to what NoSQL is, and how it’s relevant to mobile development.

The todo application that was created in the previous tutorial works fine, but there’s one glaring limitation, and that is that it can only ever be used by one person. The local database syncs all of its data to a single remote database, and the application makes use of all of the data stored in the remote database. That means that if two people were to use the application they would have to share the same set of data.

Read Full Articles..

Share on Google Plus

About www. codeandyou.com

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment

0 comments :

Post a Comment