> For the complete documentation index, see [llms.txt](https://ibm-developer.gitbook.io/reactive-endpoints-with-quarkus-on-openshift/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ibm-developer.gitbook.io/reactive-endpoints-with-quarkus-on-openshift/setup-the-sample-application/exercise-01.md).

# Exercise 1 - Deploy the example application via one script

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
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.

[![Click play on youtube](https://img.youtube.com/vi/RYGCrsR37Go/0.jpg)](https://www.youtube.com/watch?v=RYGCrsR37Go)

## 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.

![web-app-url](https://230114421-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8FkCR0HY2sWktByd2R%2Fuploads%2Fgit-blob-d293ab2393c6026f923970805b62a9ce9cd69688%2Fweb-app-url.png?alt=media)

## Step 3: Copy the curl command

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

![create-articles-curl](https://230114421-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8FkCR0HY2sWktByd2R%2Fuploads%2Fgit-blob-5a9f44124f872a1199627c5b637825eb6bc809bd%2Fcreate-articles-curl.png?alt=media)

## 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.

![verify-app6](https://230114421-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8FkCR0HY2sWktByd2R%2Fuploads%2Fgit-blob-5aa648ded295952c7db72cf9e269d32558e89aa3%2Fverify-app6.png?alt=media)

## 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.

![postgres-verify](https://230114421-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8FkCR0HY2sWktByd2R%2Fuploads%2Fgit-blob-e0d0d7f32f5dd02cf505fd8fba544ffd8752946c%2Fpostgres-verify.png?alt=media)

## 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.

![kafka-deployment2](https://230114421-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8FkCR0HY2sWktByd2R%2Fuploads%2Fgit-blob-f596b0cdf779dd49895fc28f30f2e50c22f47d59%2Fkafka-deployment2.png?alt=media)

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

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

![verify-app1](https://230114421-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8FkCR0HY2sWktByd2R%2Fuploads%2Fgit-blob-22893a54b85bc61a521f90bb597b165444b93ff6%2Fverify-app1.png?alt=media)

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

![verify-app2](https://230114421-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8FkCR0HY2sWktByd2R%2Fuploads%2Fgit-blob-4181109602b0daa96f488232e2dea79107549c62%2Fverify-app2.png?alt=media)

![verify-app3](https://230114421-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8FkCR0HY2sWktByd2R%2Fuploads%2Fgit-blob-bb5f172c0e3df0b8af63b441d86a1f2335e80992%2Fverify-app3.png?alt=media)

![verify-app4](https://230114421-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8FkCR0HY2sWktByd2R%2Fuploads%2Fgit-blob-66e20c002012160ed55c0ff44c6cd22f022cea71%2Fverify-app4.png?alt=media)
