All threads / Can a Rails app be converted into a Progressive Web App?

Ask A Question

Notifications

You’re not receiving notifications from this thread.

Can a Rails app be converted into a Progressive Web App?

jun asked in Rails

I was looking for a way to create a mobile client for my Rails App / API.

I came upon PWAs but I couldn't find any info on how to use it for Rails.

Is it possible?

I know gonative.io can turn your rails app directly into a native mobile app on android and ios. I don't know if it works for APIs. Also, I haven't yet done it myself, but there's a cool feature on the homepage. Just type in your rails app url and it automatically shows you what it would look like as a mobile app. Costs about $600 I think to do the conversion.

I'm going through this tutorial to add service workers to Rails. But it's incomplete. I hope Chris can make a better tutorial:

https://www.youtube.com/watch?v=zqobr9fwH_M

It uses Webpush and service-worker-rails

https://github.com/zaru/webpush
https://github.com/rossta/serviceworker-rails

+1 for an episode on service worker with rails ;-)

progressive app development is not easy to learn and to teach too. https://keenethics.com/tech-apps-progressive-web-appsin the page you can find tone of useful info

+1 For an episode on Service Workers, I was using serviceworker-rails but Rails 6 implementing webpack by default broke it, and I have no idea now.

This is a great talk from RailsConf last year on the subject. And here's the PWA demo app he uses as an example.

I've built a couple of modest PWAs with Rails using these concepts.

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 38,558+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.