Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install and use couch db in android

How i should install and use couch Db in android.
I mean local couch Db which i can use in tablet as well as emulator.What all steps i must follow to do so.

like image 356
Amruta Avatar asked Mar 19 '13 12:03

Amruta


People also ask

How do I install CouchDB?

Download CouchDB The official website for CouchDB is https://couchdb.apache.org. If you click the given link, you can get the home page of the CouchDB official website as shown below. If you click on the download button that will lead to a page where download links of CouchDB in various formats are provided.

Is CouchDB open source?

Apache CouchDB is an open-source document-oriented NoSQL database, implemented in Erlang. CouchDB uses multiple formats and protocols to store, transfer, and process its data. It uses JSON to store data, JavaScript as its query language using MapReduce, and HTTP for an API.


1 Answers

I'm working on a project using this at the moment. There are two options:

1) couchbase-android. (yes, couchbase, it's actually couchDB. Go figure)

See This Link

This is what I use. This is just stock couchDB 1.2.0, bundled with an erlang vm for android. I've found it to be flawlessly stable (despite being beta). Big drawback is that it takes ~4 sec to start the app up, as it has to load the erlang emulator. The readme instructions are good.

It is no longer being developed, in favor of ...

2) TouchDB android. Check Out

This is couchDB rewritten in java, so it runs and boots faster on android. There is TouchDB for iOS, which is the same thing in objective-c. I was put off by the development status, but have heard that it's not so bad. The iOS version has had heavy development lately, and is at version 1.0. I hear things like "some features aren't implimented", but not which features those are. Supposedly this will just drop in and replace couchbase-android.

I can attest that couchbase-android works well (if you don't mind the boot time). I have developed my app with cordova, which I am happy to give advice about if that's the way you're going.

like image 163
ddouglascarr Avatar answered Sep 23 '22 02:09

ddouglascarr