You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-2Lines changed: 21 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,12 +7,31 @@ Simple web push for Elixir
7
7
8
8
## Installation
9
9
10
-
The package can be installed by adding `web_push_elixir` to your list of dependencies in `mix.exs`:
10
+
1.The package can be installed by adding `web_push_elixir` to your list of dependencies in `mix.exs`:
11
11
12
12
```elixir
13
13
defdepsdo
14
14
[
15
15
{:web_push_elixir, "~> 0.1.0"}
16
16
]
17
17
end
18
-
```
18
+
```
19
+
20
+
2. Run the mix command to generate your Vapid public and private keys:
21
+
22
+
```commandline
23
+
mix generate.vapid.keys
24
+
```
25
+
26
+
3. Set your environment variables for your keys:
27
+
28
+
```yaml
29
+
environment:
30
+
- VAPID_PUBLIC_KEY=someVapidPublicKey
31
+
- VAPID_PRIVATE_KEY=someVapidPrivateKey
32
+
- VAPID_SUBJECT=mailto:admin@email.com
33
+
```
34
+
35
+
## Credits
36
+
37
+
Heavily inspired by [@danhper](https://github.com/danhper) as his work on [elixir-web-push-encryption](https://github.com/danhper/elixir-web-push-encryption) :pray: Thank you
0 commit comments