An open API service indexing awesome lists of open source software.

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

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).