Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I noticed your question is old, but hope this answer is still useful to you. Here's what I did.</p> <p>First, setup <a href="http://developer.android.com/guide/developing/tools/adb.html#forwardports" rel="nofollow">port forwarding</a> to your emulator.</p> <blockquote> <p>adb forward tcp:5985 tcp:5984</p> </blockquote> <p>This makes the CouchDB instance running on your Android emulator available on port 5985 of your host machine. Verify it works with:</p> <blockquote> <p>$ curl localhost:5985</p> </blockquote> <p>You should get a response with version you have installed on your emulator:</p> <blockquote> <p>{"couchdb":"Welcome","version":"1.2.0a-7b47329-git"}</p> </blockquote> <p>If you're using the CouchApp toolchain, you can push the app from your file system to your emulator like this:</p> <blockquote> <p>couchapp push . <a href="http://localhost:5985/my-app" rel="nofollow">http://localhost:5985/my-app</a></p> </blockquote> <p>Alternatively, if the app is already installed (pushed) on your server (assuming server is your local host machine) you can issue a <a href="http://wiki.apache.org/couchdb/Replication" rel="nofollow">replicate command (HTTP POST)</a> that looks similar to this:</p> <blockquote> <p>$ curl -H 'Content-Type: application/json' -X POST <a href="http://localhost:5984/_replicate" rel="nofollow">http://localhost:5984/_replicate</a> -d ' {"source": "http://localhost:5984/my-app", "target": "http://localhost:5985/my-app", "create_target": true, "continuous": true} '</p> </blockquote> <p>That should do the trick. Let me know if you run into any troubles.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload