{"id":16514030,"url":"https://github.com/naturalprogrammer/webpush-java-demo","last_synced_at":"2025-10-08T22:19:59.787Z","repository":{"id":86284091,"uuid":"113675546","full_name":"naturalprogrammer/webpush-java-demo","owner":"naturalprogrammer","description":"WebPush Java Demo with Spring Boot","archived":false,"fork":false,"pushed_at":"2017-12-09T15:27:40.000Z","size":159,"stargazers_count":21,"open_issues_count":2,"forks_count":11,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-08T15:49:31.644Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/naturalprogrammer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2017-12-09T14:28:45.000Z","updated_at":"2025-01-29T19:06:02.000Z","dependencies_parsed_at":"2023-03-13T09:27:22.993Z","dependency_job_id":null,"html_url":"https://github.com/naturalprogrammer/webpush-java-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/naturalprogrammer/webpush-java-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naturalprogrammer%2Fwebpush-java-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naturalprogrammer%2Fwebpush-java-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naturalprogrammer%2Fwebpush-java-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naturalprogrammer%2Fwebpush-java-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/naturalprogrammer","download_url":"https://codeload.github.com/naturalprogrammer/webpush-java-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/naturalprogrammer%2Fwebpush-java-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000782,"owners_count":26082851,"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-10-08T02:00:06.501Z","response_time":56,"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":"2024-10-11T16:11:12.296Z","updated_at":"2025-10-08T22:19:59.752Z","avatar_url":"https://github.com/naturalprogrammer.png","language":"JavaScript","readme":"# Java WebPush Demo application\r\n\r\n\r\n* Java WebPush demo\r\n* https://github.com/web-push-libs/webpush-java used\r\n* Front-end copied from https://github.com/thihara/web_push_notifications/tree/master/static\r\n* Spring Boot is used for creating the backend\r\n\r\n## Try it out\r\n\r\n* Checkout and run the application\r\n* Visit http://localhost:8080 and then click on subscribe\r\n* Post a notification by using the following command from linux/mac (or a git-bash terminal in Windows):\r\n\r\n```\r\ncurl -X POST \\\r\n  http://localhost:8080/notify-all \\\r\n  -H 'Cache-Control: no-cache' \\\r\n  -H 'Content-Type: application/json' \\\r\n  -d '{\r\n\t\"title\": \"NaturalProgrammer\",\r\n\t\"message\": \"NaturalProgmmer.com - where quality matters\",\r\n\t\"clickTarget\": \"http://www.naturalprogrammer.com\"\r\n}'\r\n```\r\n\r\n## References\r\n\r\n* https://dzone.com/articles/web-push-notifications-1\r\n* https://github.com/web-push-libs/webpush-java\r\n* https://github.com/web-push-libs/webpush-java/blob/master/doc/UsageExample.md\r\n* https://github.com/web-push-libs/webpush-java/blob/master/doc/VAPID.md\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaturalprogrammer%2Fwebpush-java-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnaturalprogrammer%2Fwebpush-java-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnaturalprogrammer%2Fwebpush-java-demo/lists"}