Spring Boot Exercise

Dependencies

Note

This Spring Todo MVC application requires openjdk-11-jre to run. You should already have this on your machine. If you do not feel free to install it with apt.

Deploy Artifacts (GitHub)

You can find the artifacts for this project at the Spring Todo MVC artifacts GitHub repo

Instructions

Using the project dependencies and the deploy artifacts:

  1. start the application server
  2. configure NGINX to serve as a reverse proxy to the running application server

Questions & Answers

How can the application server be started with the java CLI?

CLICK FOR ANSWER
java -jar /home/student/spring-todo-mvc-artifact/todo-mvc.jar

What port was the application server running on?

CLICK FOR ANSWER

8080

What did the NGINX configuration need to contain to serve as a reverse proxy?

CLICK FOR ANSWER
server {
    listen 80;
    server_name localhost;

    location / {
        proxy_pass http://localhost:8080;
    }
}

What command was used to reload NGINX after a change was made to the configuration file?

CLICK FOR ANSWER
sudo nginx -s reload