Skip to content

Commit

Permalink
Update reactive section with corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
kdubois committed Jul 2, 2024
1 parent a918e72 commit b658160
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions documentation/modules/ROOT/pages/14_reactive.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,32 @@ cd {project-name}
--
====

== Start the app in Dev Mode:

[tabs%sync]
====
Maven::
+
--
[.console-input]
[source,bash,subs="+macros,+attributes"]
----
./mvnw quarkus:dev
----
--
Quarkus CLI::
+
--
[.console-input]
[source,bash,subs="+macros,+attributes"]
----
quarkus dev
----
--
====


== Create Beer POJO

Create a new `Beer` Java class in `src/main/java` in the `com.redhat.developers` package with the following contents:
Expand Down Expand Up @@ -117,6 +143,8 @@ public interface BeerService {

== Configure REST Client properties

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:

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

[.console-input]
Expand Down

0 comments on commit b658160

Please sign in to comment.