I’m delving into my first Ionic Vue cross-platform offline-first app and would love to hear any advice for tools to go about it, particularly for local data storage and two-way sync to server. Here’s a simple summary of technical needs for the app:
- Offline, local storage by default
- Optional account signup enables two-way sync with server
- CRUD operations on text data (no images or other file types for now)
- Cross-platform Android, iOS, and web
The two-way sync needs to be robust enough to handle frequent usage back and forth between mobile and web apps, and I’d like to use a library that handles as much of the sync logic as possible. If it has integrations for Ionic and/or Vue even better.
From what I’ve researched these seem to be the existing options for local storage with sync to server:
- PouchDB + CouchDB (tutorial: Offline First Shopping List – The Data Lab)
- Realm + MongoDB Atlas
- AWS Amplify DataStore + AppSync (tutorial)
PouchDB looks ideal, I’m just surprised by the small number of GitHub repos using it with Vue. I’m also open to SQL-based options.
Also I get the impression that to really persist local storage, I’ll need to also use the Ionic storage module as well. Is this accurate?
Much thanks for any recommendations or advice.