Download the projects:
git clone https://github.com/jcmellado/cloud-greeter.git
git clone https://github.com/jcmellado/cloud-greeter-config.git
In order to get this working you will need Java and Maven properly installed.
Change the current working directory:
cd cloud-greeter/modules
Run the following commands in different terminal windows.
Start up Config server:
cd cloud-greeter-config
mvn spring-boot:run "-DCLOUD_GREETER_CONFIG_PATH=../../../cloud-greeter-config"
Start up Eureka:
cd cloud-greeter-eureka
mvn spring-boot:run
Start up Greeter Service (two or more instances):
cd cloud-greeter-service
mvn spring-boot:run "-DCLOUD_GREETER_SERVICE_PORT=8200"
mvn spring-boot:run "-DCLOUD_GREETER_SERVICE_PORT=8201"
Start up Greeter API Gateway (two or more instances):
cd cloud-greeter-api
mvn spring-boot:run "-DCLOUD_GREETER_API_PORT=8300"
mvn spring-boot:run "-DCLOUD_GREETER_API_PORT=8301"
Start up Zuul:
cd cloud-greeter-zuul
mvn spring-boot:run
Start up Turbine:
cd cloud-greeter-turbine
mvn spring-boot:run
The following endpoints will be available:
-
Config Server endpoint at http://localhost:8100
-
Eureka endpoint at http://localhost:8101
It will show the Eureka dashboard.
-
Greeter Service endpoints at http://localhost:8200 and http://localhost:8201
-
Greeter API Gateway endpoints at http://localhost:8300 and http://localhost:8301
-
Zuul endpoint at http://localhost:8103
-
Turbine endpoint at http://localhost:8102/hystrix
It will show the Hystrix dashboard.
Try http://localhost:8102/hystrix/monitor?stream=http://localhost:8300/hystrix.stream