In this POC, I want to create a SSR application that can send Web notifications in a browser, even if the web page of the application is closed.
$ mise install
$ pnpm install
$ ./scripts/generate-vapid-keys.sh
$ source .envrc
$ pnpm run dev
Open http://localhost:5137 in Chrome Browser.
Why Chrome Browser: see this note.
Emit a notification:
$ curl -X POST http://localhost:5173/notify/
Normally, you should see a notification displayed by your Chrome browser, even if the website is not being displayed.