{"id":27243337,"url":"https://github.com/spyna/push-notification-demo","last_synced_at":"2025-10-08T05:42:36.801Z","repository":{"id":40623762,"uuid":"204452575","full_name":"Spyna/push-notification-demo","owner":"Spyna","description":"How to implement Web Push Notifications with live demo and instructions","archived":false,"fork":false,"pushed_at":"2023-03-08T04:34:47.000Z","size":2621,"stargazers_count":217,"open_issues_count":10,"forks_count":94,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-05-20T14:07:08.065Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://push-notifications-demo.netlify.app/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Spyna.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-08-26T10:30:28.000Z","updated_at":"2025-03-21T17:28:45.000Z","dependencies_parsed_at":"2025-04-12T07:01:36.517Z","dependency_job_id":null,"html_url":"https://github.com/Spyna/push-notification-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Spyna/push-notification-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spyna%2Fpush-notification-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spyna%2Fpush-notification-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spyna%2Fpush-notification-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spyna%2Fpush-notification-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Spyna","download_url":"https://codeload.github.com/Spyna/push-notification-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spyna%2Fpush-notification-demo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266944414,"owners_count":24010486,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-25T02:00:09.625Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-10T20:27:57.904Z","updated_at":"2025-10-08T05:42:31.753Z","avatar_url":"https://github.com/Spyna.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e How to implement Web Push Notifications with live demo and instructions: https://push-notifications-demo.netlify.app/\n\n![A push notificatin][pushNotificaiton]\n\n[pushNotificaiton]: https://github.com/Spyna/push-notification-demo/raw/master/push-notification.jpg \"Push notification\"\n\n# push-notification-demo\n\nThis mono-repo project is a demo for this article https://itnext.io/an-introduction-to-web-push-notifications-in-javascript-a701783917ce\n\nThe project is composed by two parts: \n\n* a front end written is HTML + JavaScript \n\n* a back end written in JavaScript + NodeJS\n\n## Run locally\n\n### font-end\n\n```\ncd front-end \nnpm install \nnpm start\n```\nNext, open http://localhost:9000. \n\n### back-end\n\n```\ncd back-end\nnpm install\nexport CORS_ORIGIN=http://localhost:9000 \u0026\u0026 node src/server.js\n```\n\n`export CORS_ORIGIN=http://localhost:9000` means: accept Cross Origin call from this host. \n\n## deploying to your server\n\nIf you want to deploy the front-end to your server remember to modify the back-end host in the webpack config file: `webpack.config.prod.js`: `'process.env.PUSH_SERVER_URL': JSON.stringify('https://push-notification-demo-server.herokuapp.com'),` \n\n[![Analytics](https://ga-beacon.appspot.com/UA-89584671-2/github/push-notification-demo)](https://github.com/igrigorik/ga-beacon)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspyna%2Fpush-notification-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspyna%2Fpush-notification-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspyna%2Fpush-notification-demo/lists"}