Sample Node.js application demonstrating the use of Service Registry in Tanzu Platform for Cloud Foundry.
For information on the Service Registry product in Tanzu Platform for Cloud Foundry, please see the documentation.
- Create a Service Registry instance:
cf create-service p.service-registry standard greeter-service-registry
- Install dependencies
npm install
- Push the
greeter-messagesapplication:
cd packages/greeter-messages && cf push
- Push the
greeterapplication:
cd packages/greeter && cf push
Call [ROUTE]/hello, where [ROUTE] is the route bound to the greeter application, with optional name and salutation parameters.
$ curl -k greeter.apps.example.cf-app.com/hello?name=John
Hello, John!