Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 535 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 535 Bytes

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