https://github.com/swisscom/cf-default-app-java
The default Java app that will be pushed in the Swisscom Application Cloud if no source code is provided
https://github.com/swisscom/cf-default-app-java
Last synced: 4 months ago
JSON representation
The default Java app that will be pushed in the Swisscom Application Cloud if no source code is provided
- Host: GitHub
- URL: https://github.com/swisscom/cf-default-app-java
- Owner: swisscom
- License: other
- Created: 2016-06-23T12:47:51.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2024-10-16T15:15:12.000Z (over 1 year ago)
- Last Synced: 2025-03-20T11:22:21.277Z (about 1 year ago)
- Language: Java
- Size: 5.46 MB
- Stars: 0
- Watchers: 35
- Forks: 2
- 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 Default App Java
The default Java app that will be pushed into the Swisscom Application Cloud if no source code is provided.
Based on [Spark](http://sparkjava.com)
## Run locally
1. Install the [Java JDK](http://www.oracle.com/technetwork/java/javase/downloads/index.html)
1. Install [Gradle](https://gradle.org/gradle-download/)
1. Run `gradle build`
1. Run `java -jar build/libs/cf-default-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 [Gradle](https://gradle.org/gradle-download/)
1. Install the [cf CLI](https://github.com/cloudfoundry/cli#downloads)
1. Run `gradle build`
1. Run `cf push -p build/libs/cf-default-app-java-1.0.0.jar --random-route`
1. Visit the given URL
## Create ZIP
1. Install the [Java JDK](http://www.oracle.com/technetwork/java/javase/downloads/index.html)
1. Install [Gradle](https://gradle.org/gradle-download/)
1. Run `gradle build`
1. Run `mv build/libs/cf-default-app-java-1.0.0.jar java_app.zip`