Skip to content

download13/easypush

Repository files navigation

Setup

Create .env file in root with

JWT_SECRET="a random string (i use a uuid)"
VAPID_CONTACT="mailto:youremail"
VAPID_PRIVATE_KEY="generate keys with"
VAPID_PUBLIC_KEY="npx web-push generate-vapid-keys"

Compile schema with npx prisma generate

Create database file with npx prisma --experimental migrate up

Customize the volume path in docker-compose.yml

Development

npm run watch:server npm run watch:client npm start

Production

docker-compose build && docker-compose up -d