Ruby on Rails
Vložit
- čas přidán 2. 06. 2024
- Let's turn an existing app into a PWA by adding a valid Webmanifest and Service Worker.
You can simply add the files to the /public folder, OR you can do it the Rails 8 way and add manifest.json and service-worker.js to ActionView!
Episode source code: github.com/yshmarov/insta2blo...
Based on this blogpost: blog.corsego.com/rails-8-pwa
0:00 PWA on MacOS
2:38 Webmanifest
7:56 Service Worker
10:05 The Rails 8 Way
This is amazing. Thank you for the hard work and research on pwa with Rails. Looking forward to more videos as the new updates come on the Rails 8.
Thank you for this
Follow up PRs:
1. Upgrade to Rails main and use it's built-in PWA Controller (github.com/yshmarov/insta2blog.com/commit/e96afcf0531850d239bac50872762b657b74f1d7)
2. Import images from assets, not /public folder (github.com/yshmarov/insta2blog.com/commit/0c8579ffcd160a77d4648548f014c1daa16b8d4c)