Monolithic application for mitigating technical support issues accordingly to ITIL best practices
In your favorite terminal, at the project root folder execute the command below to build and generate the war package:
mvn clean package
Still at the project root folder, run the following to download the database image and start it via Docker:
docker-compose -f docker/docker-compose-postgres up
The first time you start Postgresql DB, only the schema is created automatically, so that it’s required to create tables and indexes, as well as populate them with initial data for the application to work as desired in the next steps.
Connect to the database with the following credentials on a SQL client of choice, for instance DBeaver or Squirrel, or even via command line.
-
Host: localhost
-
Port: 5432
-
User: postgres
-
Password: aula
-
Database: xsr
Now it’s time to start Tomcat to deploy the war generated at the build step.
docker-compose -f docker/docker-compose-tomcat up
In your favorite browser verify that you can access the application at http://localhost:9090/xsr-v1.
Expected result: