Dockerized Spring POC implementing the synchronization and the data querying between MySql and ElasticSearch engine.
Make sure to have the followings installed:
-
To run locally
- ElasticSearch engine (the version depends on the spring-jpa dependency used within the project see: Compatibility Matrix)
-
To run with Docker
- Docker (Ubuntu 18.04 Installation guide)
- Docker-compose (Ubuntu 18.04 Installation guide)
-
Locally
- Create a database in MySql
elasticsearch
- Run
mvn clean package spring-boot:run
to build the artifact and run the application - Run
./elasticsearch
script inside the bin directory of the elastic search package
- Create a database in MySql
-
Docker
- Run
docker-compose up --build -d
to run the docker services
- Run
Visitit http://localhost:8080/swagger-ui.html
to visualize the exposed API endpoints.