Skip to content

vfshera/expressjs-vue-push-notifications

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

1.Run yarn install in frontend ,then npm install in backend.

2.Create .env file with fields like the ones in .env.example.

3.PUBLIC & PRIVATE VAPID KEYS can be generated by console.log(webpush.generateVAPIDKeys()) in backend/index.js.

4.Run yarn build in frontend to build to frontend/dist folder.

5.Run npx http-server dist in frontend to serve dist folder.

6.Run Backend with npm start.

7.Simulate new Notification by posting to backend /notify route

NB:The /notify route logic can be transfared to work in the server whenever there is a new update

OTHER INSTRUCTIONS ARE COMMENTED IN THE CODE.

Releases

No releases published

Packages

No packages published