โ† Full Stack Mobile App Development learning path
Full Stack Mobile App Development ยท Module 6 of 10

Databases and offline data

Store data locally and in the cloud.

๐Ÿ“– Key ideas

  1. Cloud: Firestore, Realtime Database, PostgreSQL, MongoDB.
  2. Local: SQLite (sqflite/Room/expo-sqlite), Hive, Isar, MMKV.
  3. Secure storage for tokens (Keychain/Keystore).
  4. Offline-first: work locally, sync when online.
  5. Handle conflicts when syncing.
๐Ÿ’ก Real-life example: Offline-first is keeping a diary that you sync to the cloud whenever you find Wi-Fi.
SQLiteEmbedded local database
FirestoreCloud document database
Offline-firstLocal-first with background sync
Secure storageEncrypted key storage