Skip to content

Repository files navigation

CF Sample App Java

A sample Java Spark application to deploy to Cloud Foundry which works out of the box.

Run locally

  1. Install the Java JDK
  2. Run ./gradlew build
  3. Run java -jar build/libs/cf-sample-app-java-1.0.0.jar
  4. Visit http://localhost:4567

Run in the cloud

  1. Install the Java JDK
  2. Install the cf CLI
  3. Run ./gradlew build
  4. Run cf push my-java-app -p build/libs/cf-sample-app-java-1.0.0.jar --random-route
  5. Visit the given URL

About

A sample Java Spark application to deploy to Cloud Foundry which works out of the box.

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

34 watching

Forks

Releases

Packages

Contributors

Languages