Code for Cloud Native Applications using Spring Boot, Spring Cloud talk
APACHE-2.0 License
> java -jar config-server/target/config-server-0.0.1-SNAPSHOT.jar
> java -jar -Dserver.port=9595 config-server/target/config-server-0.0.1-SNAPSHOT.jar
http://localhost:8888/catalog-service/default.json
http://localhost:8888/catalog-service/prod.json
> java -jar service-registry/target/service-registry-0.0.1-SNAPSHOT.jar
> java -jar catalog-service/target/catalog-service-0.0.1-SNAPSHOT.jar
http://localhost:9191/products
> java -jar inventory-service/target/inventory-service-0.0.1-SNAPSHOT.jar
http://localhost:9393/inventory
> java -jar order-service/target/order-service-0.0.1-SNAPSHOT.jar
POST - http://localhost:9292/orders
Payload:
{ "customerEmail":"[email protected]", "customerAddress": "Hyderabad", "items": [ { "productId" : 1, "quantity" : 3, "productPrice": 25 }, { "productId" : 2, "quantity" : 1, "productPrice": 15 } ] }
GET - http://localhost:9292/orders/{orderId}
> java -jar shoppingcart-ui/target/shoppingcart-ui-0.0.1-SNAPSHOT.jar
> java -jar hystrix-dashboard/target/hystrix-dashboard-0.0.1-SNAPSHOT.jar