https://github.com/eggmantv/web-push-notifications
Web Push Notifications实战
https://github.com/eggmantv/web-push-notifications
javascript ruby ruby-on-rails web-push-notification
Last synced: about 2 months ago
JSON representation
Web Push Notifications实战
- Host: GitHub
- URL: https://github.com/eggmantv/web-push-notifications
- Owner: eggmantv
- Created: 2017-06-25T03:57:33.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-28T13:15:36.000Z (almost 9 years ago)
- Last Synced: 2025-03-16T12:42:37.233Z (about 1 year ago)
- Topics: javascript, ruby, ruby-on-rails, web-push-notification
- Language: Ruby
- Homepage: https://eggman.tv/c/s-web-push-notifications
- Size: 23.4 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Web Push Notifications
https://eggman.tv/c/s-web-push-notifications
Web Push Notifications实战
## 使用
- 环境要求: Ruby 2.4 +, Rails 5.1 +
- 浏览器: Chrome / Firefox最新版
- 科学上网
```shell
$ bundle
$ rails db:migrate
$ rails s
```
打开浏览器访问localhost:3000,打开你的开发者工具调试。
> 这个源码中比实际课程中多了后台保存subscription信息的逻辑,以供大家参考。