PolymerElements / app-storage

Data-pipes and specialized services
61 stars 47 forks source link

Demo that shows offline-first Firebase storage capability #2

Closed cdata closed 8 years ago

cdata commented 8 years ago

As a Polymer app author, when I evaluate carbon-firebase-storage for use in my app, I want to see a demo of the element in action, so that I know how it is intended to be used.

Our first demo is going to be a carbon-firebase-storage demo that shows off offline-first use cases. Proposed offline use-cases:

User goes from online to offline

  1. User is online and loads the app at least once.
  2. ServiceWorker caches the app locally so that it is available offline.
  3. User's network state changes to offline, but data changes can still be made.
  4. User's network state changes to online, and changes made while offline are sync'd to remote storage.

User leaves the app and returns while offline

  1. User is online and loads the app at least once.
  2. ServiceWorker caches the app locally so that it is available offline.
  3. User leaves the app, and returns while offline.
  4. Data changes are made while still online.
  5. User goes online, and changes made while offline are sync'd to remote storage.
cdata commented 8 years ago

This was completed as of https://github.com/PolymerElements/carbon-storage/commit/8dbc6d753db397ce171afc90eb72ba31f648acc3