Skip to content

Commit c9298b2

Browse files
author
Darren Zhang
committed
Fixed the defect.
1 parent 08769af commit c9298b2

File tree

1 file changed

+37
-21
lines changed

1 file changed

+37
-21
lines changed

README.adoc

Lines changed: 37 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,43 @@ https://openliberty.io/guides/rest-intro.html[Creating a RESTful web service^].
7878
include::{common-includes}/gitclone.adoc[]
7979

8080

81+
=== Try what you'll build
82+
83+
The `finish` directory in the root of this guide contains the finished application. Give it a try before you proceed.
84+
85+
To try out the application, first go to the `finish` directory and run the following
86+
Maven goal to build the application and deploy it to Open Liberty:
87+
88+
[role='command']
89+
```
90+
mvn generate-resources
91+
```
92+
93+
Start the Angular application, which starts the Open Liberty server:
94+
95+
[role='command']
96+
```
97+
mvn liberty:run
98+
```
99+
100+
After you see the following message, your application server is ready.
101+
102+
[role="no_copy"]
103+
----
104+
Press the Enter key to run tests on demand.
105+
106+
Then, point your browser to the web application root http://localhost:9080[http://localhost:9080^] to see the following output:
107+
108+
[subs="quotes", role="no_copy"]
109+
----
110+
foo wrote 2 albums:
111+
Album titled *album_one* by *foo* contains *12* tracks
112+
Album tilted *album_two* by *foo* contains *15* tracks
113+
bar wrote 1 albums:
114+
Album titled *foo walks into a bar* by *bar* contains *12* tracks
115+
dj wrote 0 albums:
116+
----
117+
81118
// =================================================================================================
82119
// Starting the service
83120
// =================================================================================================
@@ -105,27 +142,6 @@ include::{common-includes}/devmode-start.adoc[]
105142
You can find your artist JSON at the
106143
http://localhost:9080/artists[http://localhost:9080/artists^] URL.
107144
108-
=== Try what you'll build
109-
110-
The `finish` directory in the root of this guide contains the finished application. Give it a try before you proceed.
111-
112-
To try out the application, first go to the `finish` directory and run the following command to start Open Liberty in development mode.
113-
114-
[role='command']
115-
```
116-
./gradlew libertyDev
117-
```
118-
119-
After you see the following message, your application server in development mode is ready.
120-
121-
[role="no_copy"]
122-
----
123-
Press the Enter key to run tests on demand.
124-
----
125-
126-
Navigate your browser to the http://localhost:9080/GradleSample/servlet[^] URL to access the application.
127-
The servlet returns a simple response of `Hello! Is Gradle working for you?`.
128-
129145
// =================================================================================================
130146
// Guide
131147
// =================================================================================================

0 commit comments

Comments
 (0)