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?
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.
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.
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.
The best alternative I'm aware of is minimongo: https://github.com/mWater/minimongo
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With