Query microservice that uses Spring Boot, ddd-4-java and cqrs-4-java libraries. Events are stored in an EventStore and the query data is retrieved from a MariaDB database.
Make sure you installed everything as described here.
- Open a console (Ubuntu shortcut = ctrl alt t)
- Start the query microservice:
cd ddd-cqrs-4-java-example/spring-boot/query ./mvnw spring-boot:run
- Opening http://localhost:8080/ should show the query welcome page
In case you want to run the integration test inside your IDE (Eclipse or other), you need to start the Eventstore and MariaDB before.
- Start the Eventstore and MariaDB Docker container using the docker-compose.yml script:
docker-compose up
- Run the test: PersonControllerIT.java
- Stop the containers in the console using CTRL+C and then remove the containers using again Docker Compose:
docker-compose rm