Skip to content

spring-cloud-services-samples/greeting-nodejs

Repository files navigation

Service Registry Node.js sample

CI

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.

Building and Deploying

  • Create a Service Registry instance:
 cf create-service p.service-registry standard greeter-service-registry
  • Install dependencies
 npm install
  • Push the greeter-messages application:
 cd packages/greeter-messages && cf push
  • Push the greeter application:
 cd packages/greeter && cf push

Trying It Out

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!

About

Sample applications demonstrating use of Service Registry in Tanzu Platform for Cloud Foundry

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published