Important
|
This application requires Java 8 JDK or greater and Maven 3.3.x or greater. |
To run this application on your local host:
$ cd starter-app-java
$ mvn spring-boot:run
To interact with your booster while it’s running locally, use the form at http://localhost:8080
or the curl
command:
$ curl http://localhost:8080/api/my_robot/ping
$ curl -X POST http://localhost:8080/api/my_robot/run
To update your application:
-
Stop your application.
NoteTo stop your running application in a Linux or macOS terminal, use CTRL+C
. In a Windows command prompt, you can useCTRL + Break(pause)
. -
Make your change (e.g. edit
src/main/resources/static/index.html
). -
Restart your application.
-
Confirm your change appears.
HINT: You can also add the Maven spring dev dependency to enable hot reloading of changed classes.
To deploy your booster to a running OpenShift cluster:
$ oc login -u <username> -p <password>
$ oc project <teamname>-robot-app
$ mvn clean fabric8:deploy -Popenshift -DskipTests
You can learn more about this booster and rest of the Spring Boot runtime in the Spring Boot Runtime Guide.