unused / gostal

A simple web push notifications go service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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": "..."
}

About

A simple web push notifications go service

License:MIT License


Languages

Language:HTML 44.9%Language:Go 28.4%Language:JavaScript 26.6%