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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Ross Kaffenberger
September 22, 2016
Technology
0
2.3k
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.5k
A Webpack Survival Guide for Rails Developers
rossta
1
2.7k
What I look for in a Junior Developer
rossta
2
1.1k
Enumerable's Ugly Cousin - GORUCO Microtalk
rossta
0
430
Enumerator - Enumerable's Ugly Cousin
rossta
1
560
Recurring Events with Montrose
rossta
3
2.1k
Enumerable - How I Fell in Love with Ruby
rossta
20
4.8k
Create and Deploy an Ember App in 5 Minutes
rossta
7
3.7k
Other Decks in Technology
See All in Technology
エンジニアリングマネージャーの仕事
yuheinakasaka
0
120
形式手法特論:SMT ソルバで解く認可ポリシの静的解析 #kernelvm / Kernel VM Study Tsukuba No3
ytaka23
1
680
バクラク最古参プロダクトで重ねた技術投資を振り返る
ypresto
0
190
「通るまでRe-run」から卒業!落ちないテストを書く勘所
asumikam
2
410
CyberAgentの生成AI戦略 〜変わるものと変わらないもの〜
katayan
0
280
コンテキスト・ハーネスエンジニアリングの現在
hirosatogamo
PRO
6
620
身体を持ったパーソナルAIエージェントの 可能性を探る開発
yokomachi
1
130
OCI技術資料 : コンピュート・サービス 概要
ocise
4
54k
大規模ECサイトのあるバッチのパフォーマンスを改善するために僕たちのチームがしてきたこと
panda_program
1
290
VPCエンドポイント意外とお金かかるなぁ。せや、共有したろ!
tommy0124
1
710
Tebiki Engineering Team Deck
tebiki
0
27k
フロントエンド刷新 4年間の軌跡
yotahada3
0
520
Featured
See All Featured
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
130
Ruling the World: When Life Gets Gamed
codingconduct
0
180
Designing Powerful Visuals for Engaging Learning
tmiket
0
290
Prompt Engineering for Job Search
mfonobong
0
200
Context Engineering - Making Every Token Count
addyosmani
9
770
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
3.4k
Design in an AI World
tapps
0
170
Into the Great Unknown - MozCon
thekraken
40
2.3k
WCS-LA-2024
lcolladotor
0
480
Music & Morning Musume
bryan
47
7.1k
Six Lessons from altMBA
skipperchong
29
4.2k
Done Done
chrislema
186
16k
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