This document provides a step-by-step manual to run the backend for the LAA along all other services.
I knew that usage of Docker is not allowed, but I chose it just for simplicity to demo this app. There's no need to setup a kafka cluster and Redis instance on AWS just to create a full topology and execute all the features end to end.
To be able to run this you must have linux or windows pc with:
- java 13 or superior
- docker
- docker-compose
- Inside the main folder, get into the source folder
cd code/rest-api-ms
- Execute maven wrapper to build the package
- on linux :
# make maven wrapper executable
chmod +x ./mvnw
# build the package
./mvnw clean install package
- on windows :
./mvnw.cmd clean install
- copy the generated fat jar to local-env folder
cp target/rest-api-ms.jar ../../local-env
- go back to this folder
cd ../../local-env
- run the compose file with all containers
docker-compose -f docker-compose-full.yml up -d
- check the list of running containers
docker ps
You should see something similar to: 7. Check if the backend is up and running acessing the health check endpoint.
http://localhost:8080/laa/health
To check the video with the whole solution working please check this.