Testing locally can be done as follows:
- Run the following command in terminal
docker-compose up -d
This will enable us to run the Postgres, Zookeeper, Kafka and Kafka Manager containers on the ports we specify in the docker-compose.yaml file.
- Run the following command to compile the maven project
mvn clean install -DskipTests
-
Run ProducerMicroservicesApplication and ConsumerMicroservicesApplication
-
Make requests to these endpoints