NitZRobotKoder
NitZRobotKoder

Reputation: 1086

PouchDB http stack used in cordova based android app?

New to pouchDB world.

1)Plan: Android app with Cordova + pouchDB +SQLite Plugin + SyncGateWay+ Couchbase Server.

2)What does the HTTP stack used by pouchDB javascript for syncing docs?

Thanks

Nithin

Upvotes: 0

Views: 83

Answers (1)

nlawson
nlawson

Reputation: 11620

When you use PouchDB, you actually don't manage the HTTP stuff yourself. PouchDB communicates directly with CouchDB/CouchbaseSyncGateway/Cloudant/etc. when you call db.sync() or db.replicate().

You can set up a Nginx or Apache reverse proxy if you like, but it's also fine to just talk directly to the database.

Upvotes: 1

Related Questions