This repository has been archived on 2021-04-21. You can view files and clone it, but cannot push or open issues or pull requests.
djangoldp-webpushnotification/README.md

27 lines
490 B
Markdown
Raw Normal View History

2021-04-07 13:21:49 +00:00
# djangoldp-webpushnotification
2019-01-11 14:15:11 +00:00
2021-04-07 14:53:58 +00:00
Enable [Web Push](https://developers.google.com/web/fundamentals/push-notifications) notifications for DjangoLDP.
2021-04-07 14:42:45 +00:00
## Install
```bash
2021-04-07 14:53:24 +00:00
$ python -m pip install djangoldp_webpushnotification
2021-04-07 14:42:45 +00:00
```
2021-04-07 14:53:24 +00:00
Then add the app to your `settings.yml` like so:
2021-04-07 14:42:45 +00:00
```yaml
2021-04-07 14:53:24 +00:00
ldppackages:
2021-04-07 14:42:45 +00:00
- djangoldp_webpushnotification
```
## Management commands
2021-04-07 14:53:24 +00:00
- `gen_vapid_key`: Generate VAPID key pair
2021-04-07 14:42:45 +00:00
## Test
```bash
$ python -m unittest djangoldp_webpushnotification.tests.runner
```