Skip to content

zouabimourad/microservices-experiments

Repository files navigation

Microservices experiments

Description

Example project with Spring Boot, Zuul 1 or Spring Cloud Gateway, Eureka, Ribbon, Hystrix, Sleuth, Zipkin and Angular Frontend

Build

./gradlew clean build buildDocker

Run

docker-compose up

Frontend

cd front
ng serve --proxy-config proxy.conf.json

Use

Frontend

http://localhost:4200/#/products

Endpoint call

curl --header "Content-Type: application/json" \
  --request POST \
  --data '{"accountIdentifier" : "mouradz", "details" : [{"productCode" : "iphone6","count" : 2},{"productCode" : "iphonex","count" : 2}]}' \
  http://localhost:8080/rest/order

Misc

Eureka Console : http://localhost:8761

Zipkin Console : http://localhost:9411

Hystrix Dashboard Console (monitoring order-service hystrix stream) : http://localhost:9500/hystrix/monitor?stream=http%3A%2F%2Forder-service%3A8083%2Factuator%2Fhystrix.stream