3

I want to develope a CRUD application in nodejs with couchbase lite and couchbase syncgetway. I want to run this node js app on Raspberry-pi.

As I can't install couchbase server on Raspberry-pi so I have to use couchbase lite as data store for my app. As I want to use couchbase syncgetway for sync data on server and Raspberry-pi. I googling much for this but not found any thing.

I already tried steps for install couchbase lite on Raspberry-pi and it is wording fine but I not found any nodejs module which is communicate with couchbaselite. there are only objective-c, java, swift, Android library but not for Nodejs.

Tunaki
  • 132,869
  • 46
  • 340
  • 423

2 Answers2

0

The go-to solution for CouchDB style replication (which Couchbase Lite mostly adheres to) with Javascript is PouchDB -> http://pouchdb.com/

Give that a shot.

borrrden
  • 33,256
  • 8
  • 74
  • 109
0

Although there are some solutions developed natively for javascript as borrrden suggests, like PouchDB but it has it's own limitations also.

There is another solution if you could install Coucuhbase-lite on Raspberry-pi, Coucuhbase-lite hase a REST API, Rest API support which can help you to consume Coucuhbase-lite using Nodejs application.

https://developer.couchbase.com/documentation/mobile/1.3/references/couchbase-lite/rest-api/index.html

I suggest you to use this REST API because it is more stable than PouchDB then if you could not use that switch to PouchDB, because in official document of PouchDB they announce that this is not completely tested solution with Couchbase and there are some bugs or conflicts, They promise 100% that PouchDB is fully integrated with CouchDB the ancestor of Couchbase.

alireza-bonab
  • 103
  • 1
  • 8