This is a simple poc that used Spring Data integrated with Elasticsearch
First, you need to open a terminal at the root of the application.
Second, you need to the Docker Compose running the command bellow:
docker-compuse up -d
Third, you need to start your application running the command bellow:
mvn clean spring-boot:run
Forth, to see if the application saved the model correctly you need to open the following URL
http://localhost:5000/#!/
First, you need to stop your application
Second, you need to stop Docker Compose running the command bellow:
docker-compuse stop -v
To see Elasticsearch data you can use a GUI called ElasticHQ!
To test if everthing is fine with the Elasticsearch you can run the command below:
curl -X GET "localhost:9200/_cat/nodes?v=true&pretty"