Reactive Messaging with Quarkus on OpenShift
  • Introduction
  • Setup the IBM Cloud Environment
    • Introduction
    • Access the Cluster
    • Access IBM Cloud Shell
  • Setup the sample application
    • Exercise 1 - Setup via Script
    • YouTube - How to setup the sample application (optional)
  • Build new version of the Microservice
    • Exercise 2 - Reactive Messaging with MicroProfile
    • Exercise 3 - Server Sent Events
    • Exercise 4 - Vert.x Event Bus
    • Exercise 5 (optional) - Use distributed Logging
  • Resources
    • How to setup the reactive sample application on OpenShift
    • Blog posts related to reactive
    • Workshop: Reactive Endpoint with Quarkus on OpenShift
    • Cloud-Native-Starter project
    • Cloud-Native-Starter project reactive
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 - Setup via Script

PreviousAccess IBM Cloud ShellNextExercise 2 - Reactive Messaging with MicroProfile

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.