tpohl / marvin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Robot Controller Application Template - Spring Boot Java

Important
This application requires Java 8 JDK or greater and Maven 3.3.x or greater.

Running the App Locally

To run this application on your local host:

$ cd starter-app-java

$ mvn spring-boot:run

Interacting with the Application Locally

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

Updating the Application

To update your application:

  1. Stop your application.

    Note
    To stop your running application in a Linux or macOS terminal, use CTRL+C. In a Windows command prompt, you can use CTRL + Break(pause).
  2. Make your change (e.g. edit src/main/resources/static/index.html).

  3. Restart your application.

  4. Confirm your change appears.

HINT: You can also add the Maven spring dev dependency to enable hot reloading of changed classes.

Running the Application on the OpenShift Cluster

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

More Information

You can learn more about this booster and rest of the Spring Boot runtime in the Spring Boot Runtime Guide.

About

License:Apache License 2.0


Languages

Language:HTML 80.4%Language:Java 19.6%