Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

cqrs4j-spring-example-query

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.

Prerequisites

Make sure you installed everything as described here.

Run the query microservice in development mode

  1. Open a console (Ubuntu shortcut = ctrl alt t)
  2. Start the query microservice:
    cd ddd-cqrs-4-java-example/spring-boot/query
    ./mvnw spring-boot:run
    
  3. Opening http://localhost:8080/ should show the query welcome page

Overview

Overview

Running test in IDE

In case you want to run the integration test inside your IDE (Eclipse or other), you need to start the Eventstore and MariaDB before.

  1. Start the Eventstore and MariaDB Docker container using the docker-compose.yml script: docker-compose up
  2. Run the test: PersonControllerIT.java
  3. Stop the containers in the console using CTRL+C and then remove the containers using again Docker Compose: docker-compose rm