Sync CBL phonegap with a CouchDB base using Sync Gateway?

113 views
Skip to first unread message

Jean-Baptiste Perrin

unread,
Apr 7, 2014, 6:18:59 AM4/7/14
to mobile-c...@googlegroups.com
Hello,

I'm new here, and I would like to sync my phonegap app using CBL with my CouchDB base.

I read, I have to use Sync_Gateway. But how to configure sync_gateway to get my CouchDB base?

Thanks

Regards

Jens Alfke

unread,
Apr 7, 2014, 12:28:12 PM4/7/14
to mobile-c...@googlegroups.com

On Apr 7, 2014, at 3:18 AM, Jean-Baptiste Perrin <jeanbaptis...@gmail.com> wrote:

I'm new here, and I would like to sync my phonegap app using CBL with my CouchDB base.
I read, I have to use Sync_Gateway. But how to configure sync_gateway to get my CouchDB base?

No, you can sync Couchbase Lite directly with CouchDB (including a hosted service like Cloudant.)

The only compatibility issue I’m aware of is that pushing attachments from Android to CouchDB isn’t working, due to a bug in CouchDB’s handling of multipart bodies. The workaround is to check out and build the latest CouchDB, since they very recently fixed the bug.

—Jens

Traun Leyden

unread,
Apr 7, 2014, 5:32:41 PM4/7/14
to mobile-c...@googlegroups.com

The only compatibility issue I’m aware of is that pushing attachments from Android to CouchDB isn’t working, due to a bug in CouchDB’s handling of multipart bodies. The workaround is to check out and build the latest CouchDB, since they very recently fixed the bug.


Actually that workaround has not been confirmed yet.  One user tried it on the CouchDB branch that supposedly has the fix, and reported it's still not working.


Jean-Baptiste Perrin

unread,
Apr 8, 2014, 4:26:58 AM4/8/14
to mobile-c...@googlegroups.com


Le lundi 7 avril 2014 18:28:12 UTC+2, Jens Alfke a écrit :

On Apr 7, 2014, at 3:18 AM, Jean-Baptiste Perrin <jeanbaptis...@gmail.com> wrote:

I'm new here, and I would like to sync my phonegap app using CBL with my CouchDB base.
I read, I have to use Sync_Gateway. But how to configure sync_gateway to get my CouchDB base?

No, you can sync Couchbase Lite directly with CouchDB (including a hosted service like Cloudant.) 
 
I finally synchronize my CouchDB base with my Sync Gateway by replicate my database in Sync Gateway.

But for directly synchronize my app with CouchDB, I just have to point my CouchDB in my sync url?

Jens Alfke

unread,
Apr 8, 2014, 10:16:29 AM4/8/14
to mobile-c...@googlegroups.com

On Apr 8, 2014, at 1:26 AM, Jean-Baptiste Perrin <jeanbaptis...@gmail.com> wrote:

But for directly synchronize my app with CouchDB, I just have to point my CouchDB in my sync url?

Yes, as I said yesterday. 

Couchbase Lite, Couchbase Sync Gateway, and CouchDB (as well as PouchDB) all use the same replication protocol.

—Jens

Jean-Baptiste Perrin

unread,
Apr 8, 2014, 10:47:07 AM4/8/14
to mobile-c...@googlegroups.com

ok,

thanks for the answer
Reply all
Reply to author
Forward
0 new messages