For further reference, please consider the following sections:
- Official Gradle documentation
- Spring Boot Gradle Plugin Reference Guide
- Create an OCI image
- Spring Web
- Spring Data Elasticsearch (Access+Driver)
The following guides illustrate how to run the project:
Run below command from the root directory of project
- docker-compose -f ./src/main/docker/docker-compose.yml up -d
once the application is up browse : http://localhost:6012/product-service/swagger-ui.html
- First load sample data POST /v1/product/load
- Then search POST /v1/product Search for product
You do not need a build before running as application image is already built and pushed to docker hub. If you need to build the image again run build.bat file
Further enhancements TBD :
- Spring cloud config for storing the elasticsearch connection details
- Resilience4j configurations for ensuring application health in load conditions
- Service registry
- Pagination
- Kafka connect for syncing new documents to elasticsearch from kafka messages