Skip to content

junpei-8/ex_web-push-with-nuxt

Repository files navigation

Web Push with Nuxt


Project Structure

Web Push

Frontend

Framework

UI

PWA

Backend

Server

Runtime

Database

ORM

Package Manager


Setup

pnpm i

Development Server

Start the development server on http://localhost:3000:

pnpm dev

Production

Build the application for production:

pnpm build

Locally preview production build:

pnpm preview

Check out the deployment documentation for more information.


PWA

https://vite-pwa-org.netlify.app/assets-generator

Icon Generator

https://cthedot.de/icongen


Environment Variables

Using Vercel, you can set environment variables in the project settings.

Variables

  • VAPID_PUBLIC_KEY
  • VAPID_PRIVATE_KEY
  • VAPID_EMAIL
  • DATABASE_URL

VAPID Keys

pnpx web-push generate-vapid-keys --json

Database URL

Using PlanetScale, you can get the database URL in the database settings.

https://planetscale.com/docs/concepts/connection-strings


Help

Bun Installation

brew tap oven-sh/bun
brew install bun

Reference: https://github.com/oven-sh/homebrew-bun