https://github.com/swisscom/cf-sample-app-java
A sample Java Spark application to deploy to Cloud Foundry which works out of the box.
https://github.com/swisscom/cf-sample-app-java
Last synced: 11 months ago
JSON representation
A sample Java Spark application to deploy to Cloud Foundry which works out of the box.
- Host: GitHub
- URL: https://github.com/swisscom/cf-sample-app-java
- Owner: swisscom
- License: other
- Created: 2016-05-27T11:17:43.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2024-10-16T15:16:20.000Z (over 1 year ago)
- Last Synced: 2025-04-15T10:18:01.105Z (about 1 year ago)
- Language: Java
- Homepage:
- Size: 75.2 KB
- Stars: 0
- Watchers: 36
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# CF Sample App Java
A sample Java [Spark](http://sparkjava.com) application to deploy to Cloud Foundry which works out of the box.
## Run locally
1. Install the [Java JDK](http://www.oracle.com/technetwork/java/javase/downloads/index.html)
1. Run `./gradlew build`
1. Run `java -jar build/libs/cf-sample-app-java-1.0.0.jar`
1. Visit [http://localhost:4567](http://localhost:4567)
## Run in the cloud
1. Install the [Java JDK](http://www.oracle.com/technetwork/java/javase/downloads/index.html)
1. Install the [cf CLI](https://github.com/cloudfoundry/cli#downloads)
1. Run `./gradlew build`
1. Run `cf push my-java-app -p build/libs/cf-sample-app-java-1.0.0.jar --random-route`
1. Visit the given URL