Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add try what you'll build. #55

Merged
merged 5 commits into from
Apr 3, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 41 additions & 1 deletion README.adoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2019 IBM Corporation and others.
// Copyright (c) 2019, 2020 IBM Corporation and others.
// Licensed under Creative Commons Attribution-NoDerivatives
// 4.0 International (CC BY-ND 4.0)
// https://creativecommons.org/licenses/by-nd/4.0/
Expand Down Expand Up @@ -78,6 +78,46 @@ https://openliberty.io/guides/rest-intro.html[Creating a RESTful web service^].
include::{common-includes}/gitclone.adoc[]


=== Try what you'll build

The `finish` directory in the root of this guide contains the finished application. Give it a try before you proceed.

To try out the application, first go to the `finish` directory and build your Angular frontend:

[role='command']
```
mvn generate-resources
```

Run the following Maven goal to build the application and deploy it to Open Liberty:

[role='command']
```
mvn liberty:run
```

After you see the following message, your application server is ready.

[role="no_copy"]
----
The defaultServer server is ready to run a smarter planet.
----

NimG98 marked this conversation as resolved.
Show resolved Hide resolved
Then, point your browser to the web application root http://localhost:9080/app[http://localhost:9080/app^] to see the following output:

[subs="quotes", role="no_copy"]
----
foo wrote 2 albums:
Album titled *album_one* by *foo* contains *12* tracks
Album tilted *album_two* by *foo* contains *15* tracks
bar wrote 1 albums:
Album titled *foo walks into a bar* by *bar* contains *12* tracks
dj wrote 0 albums:
----

[role='command']
include::{common-includes}/twyb-end.adoc[]

// =================================================================================================
// Starting the service
// =================================================================================================
Expand Down