Target
I want to build a cross-platform mobile app with cordova
/phonegap
which require a database (client-side only). My target platform is mainly Android
and iOS
. I have chosen couchbase-lite
as my storage.
Problem
But I could not find any good documentation for couchbase-lite
in phonegap
. Only I found some rest api and an application todo-lite in github and Play Store.
I could not understand if I don't have any server side implementation how could I get a url at which I can sent POST/GET/PUT/DELETE request.
Can anyone suggest me a way by which I can install, connect and run CRUD operation in couchbase-lite
database locally in Android
and iOS
using cordova
/phonegap
.
Why Couchbase-lite (Not Important for all)
For those who will suggest me to choose another db, I am just sharing my findings...
From cordova 5.0 storage documentation there are several choices
- LocalSorage: 5 MB limit is not sufficient for the application.
- WebSQL: I'm afraid about the future of it since w3c dropped its planning.
- IndexDB: Currently underdevelopment and not available for Android and iOS.
- Plugin-Based Options: By motivating the evaluation of NoSQL. I have tried
couchbase-lite
. Which has plugin support for both Android and iOS platform.