~/talk

Building an offline experience with a Rails-powered PWA

Talkat Rails World 2023 · 2023-10-05..10-06· [ruby-on-rails, pwa]
slides:none on file

A Rails 7 app becomes a working PWA that performs offline CRUD for a long field questionnaire used by farmers: it uses a service worker at root scope and a manifest for installability, stores records locally with IndexedDB (Dexie wrapper), renders offline UI via Stimulus + Mustache templates and syncs to the server with a manual sync button (background sync optional). Network is detected by fetching a small uncached image; front and back validations match to avoid sync failures.

AI-written summary · about

  1. 0:00Introduction
  2. 1:34What is a PWA
  3. 4:09Case study challenge
  4. 5:56Setting up PWA basics
  5. 9:10CRUD with Hotwire and IndexedDB
  6. 15:38User interaction with offline data
  7. 20:19Key takeaways and compatibility
  8. 22:31Q&A and resources
~/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.