Skip to content

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

Notifications You must be signed in to change notification settings

dobrud/cf-sample-app-java

 
 

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. Install Gradle
  3. Run gradle build
  4. Run java -jar build/libs/cf-sample-app-java-1.0.0.jar
  5. Visit http://localhost:4567

Run in the cloud

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%