Plugin to install Couchbase Lite in your PhoneGap app on iOS or Android
Objective-C Java Other
Clone or download
Latest commit 96791bf Nov 16, 2017
Permalink
Failed to load latest commit information.
lib Update with CBL 1.4.1 Nov 16, 2017
src Update with CBL 1.4.1 Nov 16, 2017
www Release 1.4.0 Mar 6, 2017
README.md Update README.md Apr 12, 2017
build-extras.gradle Release 1.4.0 Mar 6, 2017
package.json Fix name in package.json Nov 16, 2017
plugin.xml Update with CBL 1.4.1 Nov 16, 2017

README.md

PhoneGap plugin for Couchbase Lite

Couchbase Lite is an embedded JSON database for occasionally connected devices. It syncs data in the background, so users can collaborate across devices. There is an event based _changes JSON feed API so you can drive data-binding UI frameworks like Sencha and Backbone to reflect remote updates interactively.

It works with native code as well as Cordova / PhoneGap on iOS and Android (you can even sync with Mac desktops), so it doesn't matter where your users are, they can work with the data, and as soon as they get back online, everyone will see their changes.

For instructions on using the plugin, see the PhoneGap Getting Started page.

Architecture

This is where the plugin fits in the picture:

architecture.png

Note: your JavaScript code can also directly communicate with Couchbase Lite over a Javascript<->Native bridge, to ask it what URL it has launched on for subsequent XHR access

Where to go from here

There's an example chat app with PhoneGap that illustrates the channel sync API. You can read more about the app here.

If you made it this far, you are now ready to build your custom PhoneGap App by editing the HTML, CSS, and Javascript files under the www directory. Your same application code will work on both the iOS and Android platforms!