I am developing an application that involves distributed nodes, both desktop and mobile that need to share a synced database. I am hoping to use Server, Lite and Sync gateway to achieve this. The backend of the app is currently written i nNodeJS and uses Ottoman v2 to connect to an instance of Server hosted on a remote machine. I am trying to make the shift to using a local version of Lite on desktop with Sync Gateway to connect and allow support for offline activities.
I believe I have some misunderstandings about how to achieve this, and reading the documentation and forums hasn’t helped clear it up.
When I try connect to the gateway in Ottoman v2 I am swapping the IP of the server for the Sync Gateway port, is this incorrect? If so, how would I connect from NodeJS?
As for Lite, is there a way to set up a standalone Java version of this that runs alongside my app and handles requests from Ottoman?
Thanks for any help, I’ve been stuck on this for a few days now.