Trigger browser and mobile push notifications by a custom HTTPS request using this go microservice.
# Start a gostal service anywhere, it will create a database and VAPID
# credentials for you on start.
$ PORT=3061 gostal "[email protected]"
> Using subscriber "[email protected]"
$ gostal -help
> Usage of gostal:
> -creds string
> filename for credentials (default "credentials.json")
> -db string
> filename for database (default "subscribers.db")
# Send a sample message using curl
$ curl -XPOST --data "Ahoi" http://<gostal-service>/subscriptions/<key>
VAPID keys are generated on start...
{
"privateKey": "...",
"publicKey": "..."
}