serviceworker-rails
serviceworker-rails copied to clipboard
Is this gem still maintained / current?
I've been scouring the internet for implementations of service workers for rails, and this seems to be the only library that comes up. The latest change seems to be 16 months ago however, which makes me nervous implementing this in a new project.
Is anyone aware of the current best practices for service workers in a Ruby on Rails environment? Or have most developers moved to other frameworks, and Rails is being used only in the more traditional scenarios?
Looks like this might be promising:
- https://github.com/rails/webpacker/issues/448#issuecomment-639997437
- coorasse/webpacker-pwa
Update: For anyone else finding this in the future, this tutorial seems to work: The Progressive Rails App
@athix thanks! Did the tutorial work in production as well? I can get everything working locally using serviceworker-rails but it fails in heroku production.
@sunwooz long story short, progressive web apps as a framework are not mature enough for production usage. Core features, like scheduled notifications are still being worked on.
I ended up moving towards separating the front-end and back-end, and using Quasar as a write-once-compile-everywhere solution for the front-end.
To answer my original question, yes, others and now myself have moved onto newer frameworks, and Rails is relegated to serving as a REST API back-end.
locally its working like a charm