43
43
2 . Change directory:
44
44
45
45
``` sh
46
- cd /examples/auth-generate-jwt/react/
46
+ cd /examples/
47
47
```
48
48
49
49
3 . Install dependencies:
@@ -55,13 +55,13 @@ yarn install
55
55
4 . Run the frontend client:
56
56
57
57
``` sh
58
- yarn run dev
58
+ yarn run auth-generate-jwt-react
59
59
```
60
60
61
61
5 . In a new tab, change directory:
62
62
63
63
``` sh
64
- cd /examples/auth-generate-jwt/server/
64
+ cd /examples/
65
65
```
66
66
67
67
6 . Rename the environment file:
@@ -70,7 +70,7 @@ cd /examples/auth-generate-jwt/server/
70
70
mv .env.example .env.local
71
71
```
72
72
73
- 7 . In ` .env.local ` update the value of ` NEXT_PUBLIC_ABLY_KEY ` to be your Ably API key.
73
+ 7 . In ` .env.local ` update the value of ` VITE_PUBLIC_ABLY_KEY ` to be your Ably API key.
74
74
75
75
8 . Install dependencies:
76
76
@@ -81,7 +81,7 @@ yarn install
81
81
9 . Run the backend server:
82
82
83
83
``` sh
84
- yarn run dev
84
+ yarn run auth-generate-jwt-server
85
85
```
86
86
87
87
10 . Try it out by opening a tab to [ http://localhost:3000/ ] ( http://localhost:3000/ ) with your browser to see the result.
97
97
2 . Change directory:
98
98
99
99
``` sh
100
- cd /examples/auth-generate-jwt/javascript/
100
+ cd /examples/
101
101
```
102
102
103
103
3 . Install dependencies:
@@ -109,13 +109,13 @@ yarn install
109
109
4 . Run the frontend client:
110
110
111
111
``` sh
112
- yarn run dev
112
+ yarn run auth-generate-jwt-javascript
113
113
```
114
114
115
115
5 . In a new tab, change directory:
116
116
117
117
``` sh
118
- cd /examples/auth-generate-jwt/server/
118
+ cd /examples/
119
119
```
120
120
121
121
6 . Rename the environment file:
@@ -135,7 +135,7 @@ yarn install
135
135
9 . Run the backend server:
136
136
137
137
``` sh
138
- yarn run dev
138
+ yarn run auth-generate-jwt-server
139
139
```
140
140
141
141
10 . Try it out by opening a tab to [ http://localhost:5173/ ] ( http://localhost:5173/ ) with your browser to see the result.
@@ -144,7 +144,7 @@ yarn run dev
144
144
145
145
// React
146
146
147
- In CodeSandbox, rename the ` .env.example ` file to ` .env.local ` and update the value of your ` NEXT_PUBLIC_ABLY_KEY ` variable to use your Ably API key.
147
+ In CodeSandbox, rename the ` .env.example ` file to ` .env.local ` and update the value of your ` VITE_PUBLIC_ABLY_KEY ` variable to use your Ably API key.
148
148
149
149
// Javascript
150
150
0 commit comments