Prerequisite Docker, Java 11, Docker-Compose, Maven
To run both project, you first need to build vert.x project and spring rx project. Vert.X
- navigate to vert.x folder
- mvn clean
- mvn package
Spring Rx
-
navigate to spring.rx folder
-
mvn clean
-
mvn package spring-boot:repackage
-
go back to root folder where the docker-compose.yml is.
-
docker-compose up
To build the vert.x project individually
- navigate to vert.x folder modify the TodoServiceImpl.java replace the mysql connection string "mysql://:@:/tododb";
- mvn clean
- mvn package
- run it with mvn exec:java
The vert.x project will run under 127.0.0.1:8081
To build the spring.rx project individually
- navigate to spring.rx folder /src/main/java/task/config modify the R2DBCConfig.java for the correct mysql host and port
- mvn clean
- mvn spring-boot:run The spring.rx project will run under 127.0.0.1:8082