~/talk

Building an offline experience with a Rails-powered PWA

Talkat RailsConf 2023 · 2023-04-24..04-26· [pwa]
slides:none on file

Turns a Rails 7 app into an installable PWA that survives no-network field use by farmers: a Chile government survey app stores complex form records in IndexedDB (Dexie), caches assets and an offline fallback via a service worker controller and manifest, uses Workbox+Dexie+Mustache for caching, rendering and storage, and performs automatic background sync with a manual sync fallback when unsupported. The prototype succeeds at create/read/update offline and reconciles on reconnect.

AI-written summary · about

  1. 0:00Intro
  2. 0:41Alicia Rojas
  3. 1:18Overview
  4. 2:09What is a PWA?
  5. 4:09The challenge
  6. 5:16The solution
  7. 6:29The ingredients
  8. 10:00Add routes
  9. 10:18Add service worker and manifest
  10. 12:13Write companion JS
  11. 16:42Workbox Strategies
  12. 18:15Offline fallback
  13. 20:53IndexedDB
  14. 22:23Background Sync API
  15. 28:33Create
  16. 34:26Key takeaways
  17. 35:37Further oportunities
  18. 36:42Resources
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.