Reactive Endpoints with Quarkus on OpenShift
  • README
  • Setup the IBM Cloud Environment
    • Overview
    • Access the Cluster
    • Access IBM Cloud Shell
  • Setup the sample application
    • Exercise 1 - Deploy the example application via one script
    • YouTube - How to setup the sample application (optional)
  • Build a new version of the Microservice
    • Exercise 1 - Develop reactive Endpoints
    • Exercise 2 - Invoke Endpoints reactively
    • Exercise 3 - Deploy Service to OpenShift
    • Exercise 4 (optional) - Use distributed Logging
  • YouTube Videos related to the Exercises
    • Exercise 1 - Develop reactive Endpoints (optional)
    • Exercise 2 - Invoke Endpoints reactively (optional)
    • Exercise 3 - Deploy Service to OpenShift (optional)
    • Exercise 4 - Use distributed Logging (optional)
  • Additional Resources
    • Blog posts related to reactive
    • Workshop: Reactive Messaging with Quarkus on OpenShift
    • Cloud-Native-Starter project
    • Cloud-Native-Starter project reactive
  • Known Issues
    • Quarkus needs Apache Maven 3.6.2+
Powered by GitBook
On this page
  • Step 1: Deploy the example application
  • Step 2: Launch the web application
  • Step 3: Copy the curl command
  • Step 4: Test the example application
  • Step 5 (optional): Verify the deployed PostgreSQL
  • Step 6 (optional): Verify the deployed Kafka
  • Step 7 (optional): Verify the deployed Services and Web Application

Was this helpful?

  1. Setup the sample application

Exercise 1 - Deploy the example application via one script

PreviousAccess IBM Cloud ShellNextExercise 1 - Develop reactive Endpoints

Last updated 4 years ago

Was this helpful?

In this short exercise you'll deploy Kafka, PostgreSQL, and the Microservices of the reactive example via a script and test the example application.

Step 1: Deploy the example application

Invoke the following command:

bash ~/cloud-native-starter/reactive/os4-scripts/deploy-example.sh

The deployment takes approximately 10 minutes.

The script console output shows links to the Microservices and the Web-App at the end of the execution.

The following 35 sec YouTube video shows a example execution of the script and the test of the application.

Step 2: Launch the web application

To launch the web application get the URL from the last output and open the application in a browser.

Step 3: Copy the curl command

Copy the curl command to create a new article and insert it into your current terminal session.

Step 4: Test the example application

Open the web application in a browser. Then invoke the curl post command. The web application should show the new entry.

Step 5 (optional): Verify the deployed PostgreSQL

You can check the status via the OpenShift web console. On the 'Pods' page select the 'postgres' project.

Step 6 (optional): Verify the deployed Kafka

You can check the status via the OpenShift web console. On the 'Pods' page select the 'kafka' project.

Step 7 (optional): Verify the deployed Services and Web Application

Make sure all four pods in the 'cloud-native-starter' project are running.

The previous steps have create build configs, builds and image streams.

web-app-url
create-articles-curl
verify-app6
postgres-verify
kafka-deployment2
verify-app1
verify-app2
verify-app3
verify-app4
Click play on youtube