/simple-push-demo

A simple example of use push notifications on the web using Service Workers

Primary LanguageJavaScriptApache License 2.0Apache-2.0

Simple Push Demo title card with a paper airplane

Simple Push Demo

The goal of this repo is to demonstrate how to implement push notifications into your web app.

Relevant Docs Information

Demo

Visit the demo here.

Development

You can develop this project locally by running the following:

npm run install
npm run dev

Testing

Tests can be run with npm run test which will run tests using puppeteer.

If you want to view and run the browser tests in your own browser, which is useful for debugging, start a server in the root of this project and navigate to the /test/browser-tests/index.html page.

Hosting

This project is hosted on vercel and can be tested locally using the vercel CLI by running:

npm run vercel