Skip to content

spring-cloud-services-samples/cook-python

Repository files navigation

Config Server Python sample

CI

Sample Pyhton 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:
pip install -r requirements.txt 
  • 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

About

Sample application demonstrating use of Config Server in Tanzu Platform for Cloud Foundry

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published