https://github.com/yhatt/service-worker-playground
Service worker playground
https://github.com/yhatt/service-worker-playground
Last synced: about 1 month ago
JSON representation
Service worker playground
- Host: GitHub
- URL: https://github.com/yhatt/service-worker-playground
- Owner: yhatt
- License: wtfpl
- Created: 2017-08-21T16:56:04.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-05T03:39:26.000Z (almost 9 years ago)
- Last Synced: 2025-10-28T15:35:52.695Z (9 months ago)
- Language: JavaScript
- Size: 81.1 KB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Service worker playground
## Getting started
First, put `.env` to config your environment.
```bash
$ cp ./.env{.sample,}
$ vi ./.env
```
And install packages and start server:
```bash
$ yarn install
$ yarn start
```
That's it. You'll access to below URLs.
- Offline cache: http://127.0.0.1:8080/offline_cache/
- Pie chart image proxy: http://127.0.0.1:8080/pie_chart_image_proxy/
- Push notification: http://127.0.0.1:8080/push_notification/ _(It would not work in incognito mode)_
### For development
For compiling worker script, we use *iframe mode* in webpack-dev-server. You could access to `http://127.0.0.1:8080/webpack-dev-server/*/` if you want to develop with hot reloading feature.
## Author
Yuki Hattori ([@yhatt](https://github.com/yhatt/))
## License
This plugin releases under the [WTFPL License](https://github.com/yhatt/service-worker-playground/blob/master/LICENSE).