To work with this tomcat web application it is needed to create a database using de dbCreation.sql script and configure the env file with the database connection information.
Create in the repository's root path a file named env with the following content:
# MySQL Configuration
MYSQL_ROOT_PASSWORD=S3cr3tP4ssw0rd
MYSQL_DATABASE=epi_db
MYSQL_USER=user
MYSQL_PASSWORD=P4ssw0rd
MYSQL_PORT=3306To deploy the docker container to create and run the database, run the following command:
docker compose up -dTo stop the database container, run the following command:
docker compose downTo deploy the web application, run the following command:
mvn tomcat7:deployTo undeploy the web application, run the following command:
mvn tomcat7:undeploy