HTML5 Local Storage & Couchbase

100 views
Skip to first unread message

Michael Crandall

unread,
Jul 18, 2014, 2:09:32 PM7/18/14
to mobile-c...@googlegroups.com
Hi,

I'm new to Couchbase and I'm looking for some good examples and tutorials on how to use HTML5 local storage and sync to a Couchbase server instance.

Can I use Couchbase as my local storage for a disconnected web app?  If so, how?

Thanks for your help in advance!

Mike.

Jens Alfke

unread,
Jul 18, 2014, 7:12:36 PM7/18/14
to mobile-c...@googlegroups.com

On Jul 18, 2014, at 11:09 AM, Michael Crandall <michael....@i3creations.com> wrote:

I'm new to Couchbase and I'm looking for some good examples and tutorials on how to use HTML5 local storage and sync to a Couchbase server instance.
Can I use Couchbase as my local storage for a disconnected web app?  If so, how?

Couchbase Lite is a native library so you can’t use it in a web app that can run in a standard web browser. You can use it in a web-app packaged as an application via PhoneGap, though.

If you want something that will run in a regular browser and can sync, take a look at PouchDB, which is a pure-JS library that uses the HTML5 local database and the CouchDB sync protocol. The Couchbase Sync Gateway is compatible with this sync protocol so you can use PouchDB as a client for it.

—Jens
Reply all
Reply to author
Forward
0 new messages