GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - naturalprogrammer/webpush-java-demo: WebPush Java Demo with Spring Boot

BranchesTags
Open more actions menu

Latest commit

 

History

5 Commits
5 Commits

Folders and files

NameName
Last commit message
Last commit date
.mvn/wrapper
.mvn/wrapper
 
 
src
src
 
 
.gitignore
.gitignore
 
 
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 
mvnw
mvnw
 
 
mvnw.cmd
mvnw.cmd
 
 
pom.xml
pom.xml
 
 

Repository files navigation

Java WebPush Demo application

  • Java WebPush demo
  • https://github.com/web-push-libs/webpush-java used
  • Front-end copied from https://github.com/thihara/web_push_notifications/tree/master/static
  • Spring Boot is used for creating the backend

Try it out

  • Checkout and run the application
  • Visit http://localhost:8080 and then click on subscribe
  • Post a notification by using the following command from linux/mac (or a git-bash terminal in Windows):
curl -X POST \
  http://localhost:8080/notify-all \
  -H 'Cache-Control: no-cache' \
  -H 'Content-Type: application/json' \
  -d '{
	"title": "NaturalProgrammer",
	"message": "NaturalProgmmer.com - where quality matters",
	"clickTarget": "http://www.naturalprogrammer.com"
}'

References

  • https://dzone.com/articles/web-push-notifications-1
  • https://github.com/web-push-libs/webpush-java
  • https://github.com/web-push-libs/webpush-java/blob/master/doc/UsageExample.md
  • https://github.com/web-push-libs/webpush-java/blob/master/doc/VAPID.md

About

WebPush Java Demo with Spring Boot

Resources

Readme
License
Activity

Stars

22 stars

Watchers

1 watching

Forks

9 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.