Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 1.09 KB

File metadata and controls

37 lines (23 loc) · 1.09 KB

Config Server Node.js sample

CI

Sample Node.js application demonstrating the use of Config Server in Tanzu Platform for Cloud Foundry.

For information on the Config Server product in Tanzu Platform for Cloud Foundry, please see the documentation.

Building and Deploying

  • Create a Config Server instance:
 cf create-service p.config-server standard cook-config-server -c '{ "git": { "uri": "https://github.com/spring-cloud-services-samples/cook-config" } }'
  • Install dependencies:
 npm install
  • Push the application:
 cf push

Trying It Out

Visit [ROUTE]/restaurant, where [ROUTE] is the route bound to the application. The "special" of the day will be taken from the configuration repository and the value of cook.special.

$ curl https://cook.apps.example.cf-app.com/restaurant

Today's special is: Cake a la mode