Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Progressive Web Apps on Rails
Search
Ross Kaffenberger
September 22, 2016
Technology
0
2.1k
Progressive Web Apps on Rails
Talking about "Why Progressive Web Apps?" and how you can start building them on Rails
Ross Kaffenberger
September 22, 2016
Tweet
Share
More Decks by Ross Kaffenberger
See All by Ross Kaffenberger
Getting Lazy with Vue and PDFs
rossta
2
1.1k
A Webpack Survival Guide for Rails Developers
rossta
1
2.1k
What I look for in a Junior Developer
rossta
2
900
Enumerable's Ugly Cousin - GORUCO Microtalk
rossta
0
280
Enumerator - Enumerable's Ugly Cousin
rossta
1
410
Recurring Events with Montrose
rossta
3
1.6k
Enumerable - How I Fell in Love with Ruby
rossta
20
4.4k
Create and Deploy an Ember App in 5 Minutes
rossta
7
3.6k
Other Decks in Technology
See All in Technology
Tableau事例紹介 / Tableau Case Study of Eureka
kazuya_araki_tokyo
1
170
Hands-on / Kaname Frusawa / Cloud Compare Users Meetup 2024 at University of Tokyo on April 17
paraworld
2
470
Tebiki株式会社 エンジニア採用資料
tebiki
0
4.1k
PHP"オレ"カンファレンスの告知
ysknsid25
0
330
「共通基盤」を超えよ! 今、Platform Engineeringに取り組むべき理由
jacopen
25
5.8k
TransitGatewayの基礎
toru_kubota
0
230
人間の尊厳、幸福、アクセシビリティ / 第116回「WEB TOUCH MEETING」アクセシビリティSP
nulabinc
PRO
2
180
最近たまに見かけるTiDBってなんだ? - Findy
pingcap0315
2
530
[2024年3月版] Databricksのシステムアーキテクチャ
databricksjapan
7
1.9k
PHPカンファレンス小田原2024
ysknsid25
2
660
Delivering Millions of Messages within seconds @ Duolingo
pelelgrino
0
320
自動生成を活用した、運用保守コストを抑える Error/Alert/Runbook の一元集約管理 / Centralized management of Error/Alert/Runbook to minimize operational costs using automated code generation
biwashi
9
2.1k
Featured
See All Featured
Into the Great Unknown - MozCon
thekraken
10
980
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
34
8.8k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
19
1.9k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
29
6k
The Invisible Side of Design
smashingmag
293
49k
GraphQLとの向き合い方2022年版
quramy
30
12k
Scaling GitHub
holman
457
140k
Building Effective Engineering Teams - LeadDev
addyosmani
26
1.8k
Large-scale JavaScript Application Architecture
addyosmani
503
110k
A Philosophy of Restraint
colly
195
16k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
5
1.5k
A designer walks into a library…
pauljervisheath
199
23k
Transcript
Progressive Web Apps on Rails Ross Kaffenberger @rossta
Native > Web Reliable Independent of connectivity Works offline Sync-able
Installable Re-engageable
Web > Native Responsive Write once, Run everywhere* Fresh Linkable
Discoverable Fast first-visit
Best of both worlds (on the web) Progressive Web Apps
None
None
Service Worker •Event driven •Worker context •No DOM access
Service Worker •Intercept requests •Access to cache, IndexedDB, etc. •Send
push notifications •Sync with server in background
Service Worker
Service Worker
Service Worker •HTTPS only •Scoped by URL, e.g. /serviceworker.js /admin/serviceworker.js
Service Worker on Rails Problem: Making Service Worker scripts work
with the asset pipeline GET /serviceworker.js
Service Worker on Rails gem “serviceworker-rails” •Serves pipeline assets from
canonical urls •Customizes response headers
Service Worker on Rails
Service Worker on Rails Sandbox
github.com/hemanth/ awesome-pwa github.com/TalAter/ awesome-service-workers
github.com/rossta/ serviceworker-rails
@rossta rossta.net Ross Kaffenberger