Couchdb on Android

后端 未结 2 1729
梦毁少年i
梦毁少年i 2020-12-13 20:21

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 replica

2条回答
  •  时光说笑
    2020-12-13 20:54

    @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:)

提交回复
热议问题