DEV Community

Discussion on: I’m Ben and I am a Rails developer

Collapse
 
carlotscvdata profile image
carlotscvdata • Edited

How was the process of turning a Rails App into a PWA? I am currently working on a Rails App for a Customer and he seems concerned that the app would not be as friendly for Mobile devices. Any thoughts or advise? Thanks for your posts that are always very helpful for Junior Devs like me :)

Collapse
 
ben profile image
Ben Halpern

When we first got invested into the APIs related to service workers it seemed overwhelming but then I realized it's actually just a few simple things to start and you grow from there. The whole PWA ecosystem is still sort of overwhelming because it's not even clear what a PWA is.

But start by just building the most basic serviceworker.js possible, caching a few basic assets and go from there to build a basic manifest.json file and you're pretty much there already. PWA is basically just a website that is fast and has serviceworkers installed.