Skip to content

Commit fda8d09

Browse files
authored
Merge pull request #56 from OpenLiberty/qa
Merge qa to master: Add "try what you'll build" subsection
2 parents 3e9a2b8 + f36c518 commit fda8d09

File tree

1 file changed

+41
-1
lines changed

1 file changed

+41
-1
lines changed

README.adoc

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2019 IBM Corporation and others.
1+
// Copyright (c) 2019, 2020 IBM Corporation and others.
22
// Licensed under Creative Commons Attribution-NoDerivatives
33
// 4.0 International (CC BY-ND 4.0)
44
// https://creativecommons.org/licenses/by-nd/4.0/
@@ -78,6 +78,46 @@ 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 build your Angular frontend:
86+
87+
[role='command']
88+
```
89+
mvn generate-resources
90+
```
91+
92+
Run the following Maven goal to build the application and deploy it to Open Liberty:
93+
94+
[role='command']
95+
```
96+
mvn liberty:run
97+
```
98+
99+
After you see the following message, your application server is ready.
100+
101+
[role="no_copy"]
102+
----
103+
The defaultServer server is ready to run a smarter planet.
104+
----
105+
106+
Then, point your browser to the web application root http://localhost:9080/app[http://localhost:9080/app^] 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+
118+
[role='command']
119+
include::{common-includes}/twyb-end.adoc[]
120+
81121
// =================================================================================================
82122
// Starting the service
83123
// =================================================================================================

0 commit comments

Comments
 (0)