|
1 | | -// Copyright (c) 2019 IBM Corporation and others. |
| 1 | +// Copyright (c) 2019, 2020 IBM Corporation and others. |
2 | 2 | // Licensed under Creative Commons Attribution-NoDerivatives |
3 | 3 | // 4.0 International (CC BY-ND 4.0) |
4 | 4 | // https://creativecommons.org/licenses/by-nd/4.0/ |
@@ -78,6 +78,46 @@ https://openliberty.io/guides/rest-intro.html[Creating a RESTful web service^]. |
78 | 78 | include::{common-includes}/gitclone.adoc[] |
79 | 79 |
|
80 | 80 |
|
| 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 | + |
81 | 121 | // ================================================================================================= |
82 | 122 | // Starting the service |
83 | 123 | // ================================================================================================= |
|
0 commit comments