Skip to content

download13/easypush

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

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