{"id":13819388,"url":"https://github.com/dmcd/pwa-demo","last_synced_at":"2025-05-16T04:33:34.628Z","repository":{"id":74935496,"uuid":"205476757","full_name":"dmcd/pwa-demo","owner":"dmcd","description":"Progressive Web App Demo using Rails and React","archived":false,"fork":false,"pushed_at":"2020-06-25T09:34:08.000Z","size":912,"stargazers_count":15,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-04T08:02:12.412Z","etag":null,"topics":["devise","multi-user","pwa","rails","react","service-worker","todolist","webpush"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dmcd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-31T01:00:16.000Z","updated_at":"2023-07-17T22:02:57.000Z","dependencies_parsed_at":"2023-02-24T19:46:16.264Z","dependency_job_id":null,"html_url":"https://github.com/dmcd/pwa-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmcd%2Fpwa-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmcd%2Fpwa-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmcd%2Fpwa-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmcd%2Fpwa-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmcd","download_url":"https://codeload.github.com/dmcd/pwa-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225405601,"owners_count":17469375,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["devise","multi-user","pwa","rails","react","service-worker","todolist","webpush"],"created_at":"2024-08-04T08:00:46.643Z","updated_at":"2024-11-19T18:31:51.792Z","avatar_url":"https://github.com/dmcd.png","language":"Ruby","funding_links":[],"categories":["Happy Exploring 🤘"],"sub_categories":[],"readme":"# Progressive Web App Demo using Rails and React\n\nA Todo List with simple multi-user editing using web-push.\n\n![](demo.gif)\n\n## Small caveat\n\n[PushManager](https://developer.mozilla.org/en-US/docs/Web/API/PushManager) and [BroadcastChannel](https://developer.mozilla.org/en-US/docs/Web/API/BroadcastChannel) don't work on Safari yet:\n\n## Setup\n\nYou need to generate your own VAPID keys for push notifications to work. See how to do it using the `web-push` library's [docs](https://github.com/web-push-libs/web-push#usage).\n\nYou need to set both `VAPID_PUBLIC_KEY` and `VAPID_PRIVATE_KEY` variables.\n\nDependencies:\n\n- ruby\n- bundle\n- yarn\n- node\n- postgresql\n\nTo setup, you need to:\n\n```\nbundle install\nyarn install\nrake db:create\nrake db:migrate\n```\n\n## Run\n\nIn development mode\n\n```\nrails s\n```\n\nLocally in production mode (required to test service worker)\n\n```\nyarn run prod\n```\n\n## Create a user\n\n```\nrails c\n\nirb(main):001:0\u003e User.create(email: 'test@gmail.com', password: 'password123')\n```\n\n## Todo\n\n- [ ] Offline support\n\n## Credits\n\nRailsConf 2018: PRPL on Rails (Pearl Latteier \u0026 Abraham Williams) http://bw.cm/prpl\n\nJSConf 2019: Build Your first mobile \u0026 desktop app as a pwa (Noorulameen \u0026 Ritesh Mehrotra) https://github.com/pwa-workshop-2019/sg-clinics-v1\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmcd%2Fpwa-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmcd%2Fpwa-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmcd%2Fpwa-demo/lists"}