Skip to content

Commit 9719019

Browse files
committed
update punkapi instructions
1 parent c231bd9 commit 9719019

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

documentation/modules/ROOT/pages/14_reactive.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,14 +143,14 @@ public interface BeerService {
143143

144144
== Configure REST Client properties
145145

146-
NOTE: The original punkapi.com service is not operational anymore. To reproduce the application, you can deploy the API on an Openshift Sandbox (developers.redhat.com/sandbox). Once you have logged in to the Sandbox, go to the "Developers" perspective in the top left corner, click on +Add in the left menu, and then in the "Git Repository" section click on the "Import from Git". Paste in the Git Repo URL field: "https://github.com/kdubois/punkapi-server.git", scroll down and set "Target port" to `3333`. Wait for the build to complete (this may take a few minutes) and the app to be deployed. Now click on the deployed app circle in the Topology view and copy the URL from the "Routes" section which should be visible on the right side of your screen. Then paste this URL in the application.properties below:
146+
NOTE: The original punkapi.com service is not operational anymore. To reproduce the application, you can deploy the API on an Openshift Sandbox (https://developers.redhat.com/sandbox). Once you have logged in to the Sandbox, go to the `Developer` perspective in the top left corner, click on `+Add` in the left menu, and then in the `Git Repository` section click on the `Import from Git` link. Paste in the Git Repo URL field the following URL: "https://github.com/kdubois/punkapi-server.git". Openshift will detect the project as a NodeJS app. Scroll further down the form and set `Target port` to `3333`. Wait for the build to complete (this may take a few minutes) and the app to be deployed. Now click on the deployed app circle in the Topology view and copy the URL from the `Routes` section which should be visible on the right side of your screen. Then paste this URL in the application.properties below:
147147

148148
Add the following properties to your `application.properties` in `src/main/resources`:
149149

150150
[.console-input]
151151
[source,properties]
152152
----
153-
com.redhat.developers.BeerService/mp-rest/url=https://api.punkapi.com
153+
com.redhat.developers.BeerService/mp-rest/url=REPLACE_WITH_PUNKAPI_URL_FROM_SANDBOX_HERE
154154
----
155155

156156
== Pagination + Filtering

0 commit comments

Comments
 (0)