Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Couchdb on Android

I am trying to evaluate couchdb and its potential for solving the sync problem on Android but I can't find any documentation that answers my questions regarding how replication to Android devices works.

It looks like the focus todolist couchapp is intended to demonstrate what I am looking for. Does it automatically sync todo's between webapp and device?

Also, how do I get the focus couchapp onto the Android device?

like image 203
Paul Drummond Avatar asked Oct 22 '10 10:10

Paul Drummond


People also ask

Is CouchDB couchbase compatible?

Meanwhile CouchDB is an actively maintained open-source project, Couchbase server is a completely separate project (it is a newer project but it is not a newer version of CouchDB - they are not even compatible) and since even new tools for creating CouchApps still keep being developed (eg.

How popular is CouchDB?

CouchDB is 39th and comes in as the fourth most popular document-oriented NoSQL database.

Is CouchDB cloud based?

CouchDB packaged by BitnamiBitnami has partnered with Google to make CouchDB available in the Google Cloud Platform.

Who uses CouchDB in production?

Here CouchDB is used as multi-node peer-to-peer offline-first database. IBM Cloud services are based at a fundamental level on CouchDB. United Airlines uses CouchDB for the in-flight entertainment systems in over 3,000 planes. Amadeus IT Group, for some of their back-end systems.


2 Answers

@Paul: regarding your last question

Also, how do I get the focus couchapp onto the Android device?"

It is mentioned in the video link posted above, but to shorten things for others searching the same matter:

I assume you know how couchapp push is working since you seem to be using the

"focus" couchone/Focus@github couchapp. Otherwise couchapp.org provide a a nice tutorial.

Pushing apps to Android couchdb can be done via port-forwarding with the Android Debug Bridge , which is shipped with the Android SDK.

On unix like systems the easiest way to use adb would be to open a terminal, "cd" to the sdk directory and to the included "tools/" directory. From there you could call

./adb forward tcp:5985 tcp:5984

Which will basically enable you to go to "localhost:5985" on your computer and will be redirected to the couchdb running on your android device. Assuming that you have

  1. installed CouchDB from the market and running
  2. enabled debugging on your phone
  3. have connected your phone:)
like image 142
chris polzer Avatar answered Oct 19 '22 06:10

chris polzer


You can watch Couchdb Android video. It might help http://www.youtube.com/watch?v=3RdcKWYGqig

like image 20
Mark K Avatar answered Oct 19 '22 07:10

Mark K