Gostal - a minimal web push notifications service
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 "gostal@lipautz.org"
> Using subscriber "gostal@lipautz.org"
$ 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": "..."
}