Run the App Locally

Page last updated:

Page last updated:

Once the application is compiled and built with all dependencies, you will be ready to run your app locally using the command

$ java -jar build/libs/cf-sample-app-java-1.0.0.jar

...
[Thread-0] INFO spark.webserver.SparkServer - == Spark has ignited ...
[Thread-0] INFO spark.webserver.SparkServer - >> Listening on 0.0.0.0:4567
[Thread-0] INFO org.eclipse.jetty.server.Server - jetty-9.0.z-SNAPSHOT
[Thread-0] INFO org.eclipse.jetty.server.ServerConnector - Started ServerConnector@2b338a85{HTTP/1.1}{0.0.0.0:4567}

Open http://localhost:4567 with your web browser. You should see your app running locally.

To stop the app from running locally, in the shell terminal, press Ctrl+C to exit.

I can run my App locally
View the source for this page in GitHub