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
The `finish` directory contains the finished JWT security implementation for the services in the application. Try the finished application before you build your own.
64
64
65
-
To try out the application, run the following commands to navigate to the `finish/frontend` directory and deploy the `frontend` service to Open Liberty:
65
+
To try out the application, run the following commands to navigate to the `finish` directory and deploy the `frontend` service to Open Liberty:
66
66
67
+
include::{common-includes}/os-tabs.adoc[]
68
+
69
+
[.tab_content.windows_section]
70
+
--
71
+
[role='command']
72
+
```
73
+
cd finish
74
+
mvnw.cmd -pl frontend liberty:run
75
+
```
76
+
--
77
+
78
+
[.tab_content.mac_section]
79
+
--
80
+
[role='command']
81
+
```
82
+
cd finish
83
+
./mvnw -pl frontend liberty:run
84
+
```
85
+
--
86
+
87
+
[.tab_content.linux_section]
88
+
--
67
89
[role='command']
68
90
```
69
-
cd finish/frontend
70
-
mvn liberty:run
91
+
cd finish
92
+
./mvnw -pl frontend liberty:run
71
93
```
94
+
--
72
95
73
-
Open another command-line session and run the following commands to navigate to the `finish/system` directory and deploy the `system` service to Open Liberty:
96
+
Open another command-line session and run the following commands to navigate to the `finish` directory and deploy the `system` service to Open Liberty:
74
97
98
+
include::{common-includes}/os-tabs.adoc[]
99
+
100
+
[.tab_content.windows_section]
101
+
--
75
102
[role='command']
76
103
```
77
-
cd finish/system
78
-
mvn liberty:run
104
+
cd finish
105
+
mvnw.cmd -pl system liberty:run
79
106
```
107
+
--
108
+
109
+
[.tab_content.mac_section]
110
+
--
111
+
[role='command']
112
+
```
113
+
cd finish
114
+
./mvnw -pl system liberty:run
115
+
```
116
+
--
117
+
118
+
[.tab_content.linux_section]
119
+
--
120
+
[role='command']
121
+
```
122
+
cd finish
123
+
./mvnw -pl system liberty:run
124
+
```
125
+
--
80
126
81
127
After you see the following message in both command-line sessions, both of your services are ready:
82
128
@@ -132,11 +178,34 @@ endif::[]
132
178
133
179
When you are done with the application, stop both the `frontend` and `system` services by pressing `CTRL+C` in the command-line sessions where you ran them. Alternatively, you can run the following goals from the `finish` directory in another command-line session:
@@ -157,20 +226,61 @@ cd /home/project/guide-microprofile-jwt/start
157
226
```
158
227
endif::[]
159
228
160
-
When you run Open Liberty in https://openliberty.io/docs/latest/development-mode.html[dev mode^], dev mode listens for file changes and automatically recompiles and deploys your updates whenever you save a new change. Run the following commands to navigate to the `frontend` directory and start the `frontend` service in dev mode:
229
+
When you run Open Liberty in https://openliberty.io/docs/latest/development-mode.html[dev mode^], dev mode listens for file changes and automatically recompiles and deploys your updates whenever you save a new change. Run the following command to start the `frontend` service in dev mode:
230
+
231
+
include::{common-includes}/os-tabs.adoc[]
232
+
233
+
[.tab_content.windows_section]
234
+
--
235
+
[role='command']
236
+
```
237
+
mvnw.cmd -pl frontend liberty:dev
238
+
```
239
+
--
240
+
241
+
[.tab_content.mac_section]
242
+
--
243
+
[role='command']
244
+
```
245
+
./mvnw -pl frontend liberty:dev
246
+
```
247
+
--
248
+
249
+
[.tab_content.linux_section]
250
+
--
251
+
[role='command']
252
+
```
253
+
./mvnw -pl frontend liberty:dev
254
+
```
255
+
--
256
+
257
+
Open another command-line session and run the following command to start the `system` service in dev mode:
258
+
259
+
include::{common-includes}/os-tabs.adoc[]
260
+
261
+
[.tab_content.windows_section]
262
+
--
263
+
[role='command']
264
+
```
265
+
mvnw.cmd -pl system liberty:dev
266
+
```
267
+
--
161
268
269
+
[.tab_content.mac_section]
270
+
--
162
271
[role='command']
163
272
```
164
-
cd frontend
165
-
mvn liberty:dev
273
+
./mvnw -pl system liberty:dev
166
274
```
275
+
--
167
276
168
-
Open another command-line session and run the following commands to navigate to the `system` directory and start the `system` service in dev mode:
277
+
[.tab_content.linux_section]
278
+
--
169
279
[role='command']
170
280
```
171
-
cd system
172
-
mvn liberty:dev
281
+
./mvnw -pl system liberty:dev
173
282
```
283
+
--
174
284
175
285
After you see the following message, your Liberty instance is ready in dev mode:
0 commit comments