Spring Boot Exercise

Install Build Dependencies:

Clone React Build Artifacts:

Clone the following repository to the home directory:

git clone https://github.com/LaunchCodeTechnicalTraining/spring-todo-mvc-artifact

How do you deploy the spring-todo-mvc project using Caddy?

Click Here for Answer

Ensure the caddy service is running:

systemctl status caddy

check caddy.service status check caddy.service status

Start the caddy service if it is inactive:

sudo systemctl start caddy

Start the Spring Boot project:

java -jar spring-todo-mvc-artifact/todo-mvc.jar

Create a Caddyfile

  • You can create the Caddyfile anywhere you would like. For this exercise it was created inside of the home directory.

Add the following code to the Caddyfile

## Default localhost port
https://localhost {
    reverse_proxy http://localhost:8080
}

Reload the Caddy Service:

caddy reload

Reload Caddy Service Reload Caddy Service

Open Localhost in the browser: