title: CouchDB as Cordova/Phonegap database
body: <h2>Target</h2>
  
  <p>I want to build a cross-platform mobile app with <code>cordova</code>/<code>phonegap</code> which require a database (client-side only). My target platform is mainly <code>Android</code> and <code>iOS</code>. I have chosen <a href="http://plugins.cordova.io/#/package/com.couchbase.lite.phonegap" rel="nofollow"><code>couchbase-lite</code></a> as my storage.</p>
  
  <h2>Problem</h2>
  
  <p>But I could not find any good documentation for <code>couchbase-lite</code> in <code>phonegap</code>. Only I found some <a href="http://developer.couchbase.com/mobile/develop/references/couchbase-lite/rest-api/index.html" rel="nofollow">rest api</a> and an <a href="http://developer.couchbase.com/mobile/get-started/get-started-mobile/phonegap/build-and-run/index.html" rel="nofollow">application todo-lite</a> in <a href="https://github.com/couchbaselabs/TodoLite-PhoneGap/" rel="nofollow">github</a> and <a href="https://play.google.com/store/apps/details?id=com.couchbase.todolite" rel="nofollow">Play Store</a>.</p>
  
  <p>I could not understand if I don't have any server side implementation how could I get a <strong>url</strong> at which I can sent <strong>POST/GET/PUT/DELETE</strong> request.</p>
  
  <p>Can anyone suggest me a way by which I can <strong>install, connect and run CRUD operation</strong> in <code>couchbase-lite</code> database locally in <code>Android</code> and <code>iOS</code> using <code>cordova</code>/<code>phonegap</code>.</p>
  
  <h2>Why Couchbase-lite (Not Important for all)</h2>
  
  <p>For those who will suggest me to choose another db, I am just sharing my findings...<br>
  From <a href="http://cordova.apache.org/docs/en/5.0.0/cordova_storage_storage.md.html#Storage" rel="nofollow">cordova 5.0 storage documentation</a> there are several choices</p>
  
  <ul>
  <li><strong>LocalSorage:</strong> 5 MB limit is not sufficient for the application.</li>
  <li><strong>WebSQL:</strong> I'm afraid about the future of it since w3c dropped its planning.</li>
  <li><strong>IndexDB:</strong> Currently underdevelopment and not available for Android and iOS.</li>
  <li><strong>Plugin-Based Options:</strong> By motivating the evaluation of NoSQL. I have tried <code>couchbase-lite</code>. Which has plugin support for both Android and iOS platform.</li>
  </ul>