Running the JAR file
In this section, we will run the JAR file we have packaged and see that the Angular application communicates with the Spring Boot application. Follow these steps:
- To run the application, you can either use the Run button via IntelliJ IDEA or use the following
java
command:java -jar superheroes-0.0.1-SNAPSHOT.jar
The preceding Java CLI command will run an executable JAR file. In the CLI, you will see that the Tomcat web server has started on port 8080
.
- Go to
http://localhost:8080
; you will be redirected tohttp://localhost:8080/login
, which consists of a login form. Figure 16.3 shows this login form:
Figure 16.3 – Login form
- Try to log in and navigate to the anti-heroes page, where you can create new heroes or villains using the form:
Figure 16.4 – Anti-heroes form
Figure 16.4 shows that everything is working on the anti-heroes form, from signing in to using...