Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ionic framework app work offline and syncing data with mongoDB

I am developing an app in ionic framework and using MongoDB as database. I want to work my app on offline and sync the data to my database. I find PouchDB which works as a local storage and sync with CouchDB. But I also find, there is no way to sync PouchDB with MongoDB. Is there any other local storage which work offline and sync with MongoDB?

like image 413
fyasir Avatar asked Aug 23 '15 03:08

fyasir


People also ask

How does ionic app connect to mongoDB?

js, HTML, CSS etc. In order to use mongoDB you will have to write a server side code which will read and write data to mongoDB and act as a middleware between your ionic application and mongoDB. Ionic App sends request to server, server communicates with mongoDB and respond to your ionic app.

Do ionic apps work offline?

In such situations, we can customize the Ionic App, and manage the application when there is no internet. To do that we have to first recognize the status of the Network/Internet connection, and then perform online or offline logic.

How does mongoDB Realm work?

Realm is an embedded, object-oriented database that lets you build real-time, offline-first applications. Its SDKs also provide access to Atlas App Services, a secure backend that can sync data between devices, authenticate and manage users, and run serverless JavaScript functions.


1 Answers

The best alternative I'm aware of is minimongo: https://github.com/mWater/minimongo

like image 96
nlawson Avatar answered Oct 27 '22 08:10

nlawson