Skip to content

spring-cloud-services-samples/greeting-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Service Registry Python sample

CI

Sample Python 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
 # geeter-messages app
 pip install -r greeter-messages/requirements.txt

 # greeter app
 pip install -r greeter/requirements.txt
  • Push applications:
 cf push
 # or push each app separately
 cf push greeter-messages
 cf push greeter

Trying It Out

Call [ROUTE]/hello, where [ROUTE] is the route bound to the greeter application, with optional name and salutation parameters.

 $ curl "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