A sample Java Spark application to deploy to Cloud Foundry which works out of the box. | Read-only mirror of https://github.com/swisscom/cf-sample-app-java — Swisscom. Issues & pull requests at the source.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2024-10-16 17:16:19 +02:00
gradle/wrapper Add Gradle wrapper 2018-07-17 11:06:41 +02:00
src/main/java/com/swisscom/cloud/cloudfoundry/sampleapp/java Exclude whole META-INF folder for Gradle 2018-02-28 13:19:52 +01:00
.gitignore ignore whole .gradle folder 2016-06-01 14:23:21 +02:00
build.gradle Exclude whole META-INF folder for Gradle 2018-02-28 13:19:52 +01:00
CODE_OF_CONDUCT.md Compliance bulk update. Add CODE_OF_CONDUCT.md 2024-10-16 17:16:19 +02:00
CONTRIBUTING.md Compliance bulk update. Add CONTRIBUTING.md 2024-10-16 17:16:18 +02:00
gradlew Add Gradle wrapper 2018-07-17 11:06:41 +02:00
gradlew.bat Add Gradle wrapper 2018-07-17 11:06:41 +02:00
LICENSE Add license file 2017-05-29 11:09:58 +02:00
README.md Remove Gradle installation step from documentation 2018-07-17 11:08:45 +02:00

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