zouabimourad / microservices-experiments

microservices-experiments

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

microservices-experiments


Languages

Language:Java 54.7%Language:TypeScript 33.4%Language:JavaScript 5.8%Language:Dockerfile 4.6%Language:HTML 1.3%Language:CSS 0.3%