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.adoc
+83-14Lines changed: 83 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,26 +65,51 @@ The `finish` directory in the root of this guide contains the finished applicati
65
65
ifndef::cloud-hosted[]
66
66
To try out the application, navigate to the `finish` directory and run the following Maven goal to build the application and deploy it to Open Liberty:
67
67
68
+
include::{common-includes}/os-tabs.adoc[]
69
+
70
+
[.tab_content.windows_section]
71
+
--
72
+
[role='command']
73
+
```
74
+
cd finish
75
+
mvnw.cmd process-resources
76
+
mvnw.cmd liberty:run
77
+
```
78
+
--
79
+
80
+
[.tab_content.mac_section]
81
+
--
82
+
[role='command']
83
+
```
84
+
cd finish
85
+
./mvnw process-resources
86
+
./mvnw liberty:run
87
+
```
88
+
--
89
+
90
+
[.tab_content.linux_section]
91
+
--
68
92
[role='command']
69
93
```
70
94
cd finish
71
-
mvn process-resources
72
-
mvn liberty:run
95
+
./mvnw process-resources
96
+
./mvnw liberty:run
73
97
```
98
+
--
74
99
endif::[]
75
100
76
101
ifdef::cloud-hosted[]
77
102
In this IBM cloud environment, you need to update the URL to access the ***artists.json***. Run the following commands to go to the ***finish*** directory and update the files where the URL has been specified:
78
103
```bash
79
104
cd finish
80
-
mvn process-resources
105
+
./mvnw process-resources
81
106
sed -i 's=http://localhost:9080/artists='"https://${USERNAME}-9080.$(echo $TOOL_DOMAIN | sed 's/\.labs\./.proxy./g')/artists"'=' /home/project/guide-rest-client-reactjs/finish/src/main/webapp/_next/static/chunks/app/page-*.js
82
107
sed -i 's=http://localhost:9080/artists='"https://${USERNAME}-9080.$(echo $TOOL_DOMAIN | sed 's/\.labs\./.proxy./g')/artists"'=' /home/project/guide-rest-client-reactjs/finish/src/main/frontend/src/app/ArtistTable.jsx
83
108
```
84
109
85
110
To try out the application, run the following Maven goal to build the application and deploy it to Open Liberty:
After you start the service, you can find your artist JSON at the http://localhost:9080/artists[http://localhost:9080/artists^] URL.
@@ -287,16 +312,38 @@ In a new command-line session, build the front end by running the following comm
287
312
288
313
// Static guide instruction
289
314
ifndef::cloud-hosted[]
315
+
316
+
include::{common-includes}/os-tabs.adoc[]
317
+
318
+
[.tab_content.windows_section]
319
+
--
290
320
[role='command']
291
-
----
292
-
mvn process-resources
293
-
----
321
+
```
322
+
mvnw.cmd process-resources
323
+
```
324
+
--
325
+
326
+
[.tab_content.mac_section]
327
+
--
328
+
[role='command']
329
+
```
330
+
./mvnw process-resources
331
+
```
332
+
--
333
+
334
+
[.tab_content.linux_section]
335
+
--
336
+
[role='command']
337
+
```
338
+
./mvnw process-resources
339
+
```
340
+
--
294
341
endif::[]
295
342
// Cloud hosted guide instruction
296
343
ifdef::cloud-hosted[]
297
344
```bash
298
345
cd /home/project/guide-rest-client-reactjs/start
299
-
mvn process-resources
346
+
./mvnw process-resources
300
347
```
301
348
endif::[]
302
349
@@ -342,16 +389,38 @@ include::finish/pom.xml[]
342
389
To run the default test, you can add the [hotspot=node-tests file=1]`testing` configuration to the `frontend-maven-plugin`. Rerun the Maven `process-resources` goal to rebuild the front end and run the tests.
0 commit comments