Monolithic application meant to provide nutrition information helping users in balancing their diets with the follow up of real nutritionists, aiming better life quality.
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
Load the script located at help/scripts/ddl.sql
to generate tables and another necessary resources.
Now it’s time to start Payara to deploy the war generated at the build step.
docker-compose -f docker/docker-compose-payara up
In your favorite browser verify that you can access the application at http://localhost:8080/nutribem-v1.
Expected result: