I am doing an applicaiton for mobile and web. So im doing Couchbase synchgate way to synch data from server to my mobile device. So i used following code do CRUD operations by using NODE JS.
var myCluster = new couchbase.Cluster(‘http://159.203.136.151:8091’);// This is the url what you given
var myBucket = myCluster.openBucket(‘default’);
ottoman.bucket=myBucket;
But by using above code. data inserting into server but not geting through couchbase server. so i changed url to following like
var myCluster = new couchbase.Cluster(‘http://159.203.136.151:4984/db/’);// This is the url what you given
var myBucket = myCluster.openBucket(‘default’);
ottoman.bucket=myBucket;
Now im getting following issue. Error: cannot perform operations on a shutdown bucket
Don’t use the Couchbase Server APIs to write data; that bypasses Sync Gateway. Instead use the Sync Gateway REST API, which is documented on our website.
Sure, you can send HTTP requests with Node.
Just go to the mobile documentation page and look for Sync Gateway REST API docs. I have too much going on right now to look it up for you, sorry.