Couchbase Lite for Windows and Linux Desktop Application


#1

Hi,

I am trying to create a hybrid desktop application for MAC, Linux and Windows platforms with Electron. I need my app to be work in offline mode as well. So, I was planning to do it with couchbase lite. But it seems like Couchbase Lite plugin is available only for MAC OSX. With the use of that I created my application for MAC OSX. Now my question is what is the proper way to do it in Windows and Linux ?

Why the Couchbase team doesn’t developed any Couchbase Lite plugin for Windows and Linux what was the difficulty in that ? Are there any alternative solutions to use Couchbase Lite plugin for this. And for few reasons I don’t want to use PouchDB I want to develop the app only with Couchbase Lite.

Thanks
Achyuth


#2

Windows and Linux are covered by both the .NET and Java versions of Couchbase Lite. I guess you want to know why we don’t have a pure C or C++ version? The best answer I have is because it’s too much work given the manpower that we have.


#3

This is the couchlite core from version 2.0 onwards


#4

Couchbase Lite Core isn’t meant to be used by itself. Its internal API is pretty rough, and likely to change without notice, and Couchbase doesn’t provide any support for it. (But of course it’s open source, so feel free to try it out if you dare.)

In the future we’d like to have an official public C/C++ API, wrapped around LiteCore, but currently the mobile team simply doesn’t have the resources to develop and maintain it alongside the four languages and at least four OSs we already support.
Privacy Policyhttps://www.couchbase.com/privacy-policy | Update Marketing Preferenceshttps://info.couchbase.com/unsubscribe-or-manage-preferences


#5

Hi,
We’ve developed an windows desktop hybrid application using electronjs which has few forms, data will be stored to enterprise couchbase server. I was checking if you’ve couchbase lite for nodejs/electron but it seems you’ve couchbase lite only for .net, swift or java. I found another post that suggest to use pouchdb but I assume puchdb might have security issue as it doesnt encrypt the data locally like couchbase lite does. Could you suggest any solution so that we still can use couchbase lite along with couchbase sync gateway?

Appreciate your response.
Thanks
Musa


#6

The only way would be to either write Javascript bindings for LiteCore to mimic the Couchbase Lite API or to write a bridge between Javascript and Couchbase Lite.


#7

Any reference how can we do that? Can we install couchbase lite core standalone and access it’s REST API?


#8

We don’t support using Couchbase Lite Core directly. The REST API is incomplete and mostly untested; don’t use it for this. The C API is of course complete but since it’s internal it’s subject to change without notice.