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

https://github.com/mustofa-id/sveltekit-push-notification-example

SvelteKit Push Notification Example
https://github.com/mustofa-id/sveltekit-push-notification-example

nodejs push-notifications svelte sveltekit web-push web-push-notification

Last synced: 6 months ago
JSON representation

SvelteKit Push Notification Example

Awesome Lists containing this project

README

          

# SvelteKit Push Notification Example

## Get Vapid keys

```bash
npx web-push generate-vapid-keys
```

Set public and private keys to `.env` file:

```bash
cp .env.example .env
```

## Development

```bash
pnpm install
pnpm dev
```

## Build

```bash
pnpm build
```

## Preview build

```bash
pnpm preview
```

## Deployment

see [docs](https://svelte.dev/docs/kit/adapters)