0
votes

I have been investigating using couchbase / couchbase mobile in an iocic hybrid app. One really great thing about developing with ionic is the fast turn around time by doing most of your development in a browser before deploying to a device. My question is it possible to use couchbase mobile from a ionic app running in a browser ? I assume that I would have to run an local instance of couchbase mobile on my dev machine and access it by the rest api in my application to test in a browser, then when I go to a device use the couchbase mobile cordova plugins

I found this link which looks like an option https://github.com/couchbaselabs/couchbase-lite-local

Other options are to use pouchdb/couchdb combination instead of couchbase.

2

2 Answers

0
votes

PouchDB mostly works with Couchbase Sync Gateway (work in progress). It has support for just about everything except attachments.

If you run into any issues, you can replicate from PouchDB to CouchDB, then from that CouchDB to Couchbase Sync Gateway.

0
votes

When you create / replicate an Pouch DB with pouch it effectively creates a DB in the browser. Take a look here http://pouchdb.com/adapters.html#pouchdb_in_the_browser to see which DB it creates.

I've been using this successfully with Ionic for a while now.