Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 1.92 KB

deploy-sample-application.md

File metadata and controls

48 lines (32 loc) · 1.92 KB

Deploy the Sample Application

{% hint style='info' %} The Benefits web app, will first invoke the Products API’s “getAll” operation to retrieve the entire list of products. Then, when the user clicks on a product, it will invoke the Stock API’s “stock” operation filtered by productid, which will return the list of store ids,with their amount of stock available. Finally the app will invoke the Stores API’s “store/{storeID}” operation for each store to retrieve the store’s name and geolocation, to place it on the map. {% endhint %}

  • Open a web browser and go to https://{{ book.hostname }}:8443
  • Login as admin/admin.
  • Click on the benefits-app template.

  • Click on the Next > button.
  • Select Create Project.
  • Enter the following values:
    • Project Name: benefits
    • Project Display Name: Benefits App

  • Scroll down to the middle of the page, and enter:

    • Application Hostname: benefits.{{ book.suffix }}

  • Go back to Openshift web console and paste it in the Products API Key field.

  • Repeat these steps for the Stores and Stock APIs.
  • Click on the Create button.
  • Click on the Continue to the project overview link.
  • After ~2min, there should be a nodeJS container deployed to Openshift.