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
- Host: GitHub
- URL: https://github.com/vfshera/expressjs-vue-push-notifications
- Owner: vfshera
- Created: 2021-12-21T19:10:19.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-24T17:17:46.000Z (over 4 years ago)
- Last Synced: 2025-02-22T20:32:17.694Z (over 1 year ago)
- Topics: expressjs, nodejs, push-notifications, pushnotifications, vue
- Language: JavaScript
- Homepage:
- Size: 325 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
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.