To build
1. git clone
2. gradlew.bat clean
3. gradlew.bat
To start the images
docker-compose up
Containers and ports
1. service-registry 6666
2. graphql-gateway 7777
3. configuration-service 8888
Order of initiaition of services: service-registery -> testservice -> testclient
verify eureka: Open Eureka monitor: http://<deployed_host_IP>:8761/
verify testservice(registery): Run: curl http://<deployed_host_IP>:8081/cluster Expected: {"id":5,"name":"HackathonDemo"} & there should be an entry called ONTAP-SERVICE in eureka UI.
verify testclient(discovery): Run: curl http://<deployed_host_IP>:8082/vmware Expected: {"id":3,"name":"HackthonVMware","cluster":{"name":"HackathonDemo","id":5}} & there should be an entry called VMWARE-SERVICE in eureka UI.
To make an existing service discoverable
- add dependency of eureka from testclient/build.gradle
- copy properties from application.properties of testclient
- Add RestTemplate part in case your service is consuming other service or to be lazy add it always.
For API gateway there can be some differences as per reading but for other bussiness services this should be fine.