An open API service indexing awesome lists of open source software.

https://github.com/zouabimourad/microservices-experiments

microservices-experiments
https://github.com/zouabimourad/microservices-experiments

docker eureka hystrix ribbon spring-boot zipkin zipkin-sleuth zuul

Last synced: 2 months ago
JSON representation

microservices-experiments

Awesome Lists containing this project

README

        

# Microservices experiments

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

## Build
```bash
./gradlew clean build buildDocker
```

## Run
```bash
docker-compose up
```

## Frontend
```bash
cd front
ng serve --proxy-config proxy.conf.json
```

## Use

### Frontend

http://localhost:4200/#/products

### Endpoint call
```bash
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