This is credit service built in Nodejs as part of the Payment Gateway demo. You will need to have Kafka server running in order to demo this service. You can deploy a local Kafka server or deploy Red Hat AMQ Streams.
-
Clone this repo.
-
Modify the following template parameters to suit your environment settings and run the following command to create the container application. oc new-app -f templates/creditservice.json
-
Clone this repo.
-
Navigate to the project folder and enter the following command inside the root folder to start service locally.
KAFKA_BOOTSTRAP_SERVER=localhost:9092 node index.js