An open API service indexing awesome lists of open source software.

https://github.com/vfshera/expressjs-vue-push-notifications

Expressjs & Vuejs(PWA) Push Notifications
https://github.com/vfshera/expressjs-vue-push-notifications

expressjs nodejs push-notifications pushnotifications vue

Last synced: 3 months ago
JSON representation

Expressjs & Vuejs(PWA) Push Notifications

Awesome Lists containing this project

README

          

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.