Micro Service POC Spring Boot cloud
JDK 1.8
Maven 3.1.x
Redis Server (No authentication)
Switch to folder ./codebase/globomart-retail-parent
mvn clean package install -DskipTests=true
This will build the entire application without running the test cases and builds the common api for further usage.
Switch to folder ./codebase/globomart-retail-parent/globomart-config-server Execute:
mvn spring-boot:run
Ensure the service starts successfully. You can do that by checking the following links in your browser.
http://localhost:9000/application/master
http://localhost:9000/globomart-eureka-service/master
http://localhost:9000/globomart-hystrix-dashboard/master
http://localhost:9000/globomart-product-catalog-service/master
http://localhost:9000/globomart-product-price-service/master
Switch to folder ./codebase/globomart-retail-parent/globomart-eureka-server and execute:
mvn spring-boot:run
Ensure the service starts successfully by checking the following URL:
http://localhost:8761/
Switch to folder ./codebase/globomart-retail-parent/globomart-hystrix-dashboard and execute:
mvn spring-boot:run
Ensure the service starts successfully
http://localhost:9002/hystrix.html
Switch to folder ./codebase/globomart-retail-parent/globomart-product-catalog-service and execute:
mvn spring-boot:run
Ensure the service starts successfully by checking the following link:
http://localhost:9003/products
Use any REST client to do full CRUD operation. An example is listed below:
Request Type: POST
URL: http://localhost:9003/products
Headers: Accept: application/json; Content-Type: application/json
Payload:
{
"productName":"iPhone Clone",
"productDescription":"iPhone Clone Description",
"productType":"iPhone Clone type",
"stockInHand":"10"
}
Switch to folder ./codebase/globomart-retail-parent/globomart-product-price-service and execute:
mvn spring-boot:run
Ensure the service starts successfully by checking the following URLs
http://localhost:9004/products/names
http://localhost:9004/products/find_price_by_product_id?productId=1
http://localhost:9004/products/find_price_by_product_id?productId=2
http://localhost:9004/products/find_price_by_product_id?productId=3
If you want to download the binaries directly and make it work then use the following link to download the different jar files which are built as part of the package goal.
https://www.dropbox.com/sh/zqmhyul759gjyim/AACeMhtsKYDmVlii6lU1jSfra?dl=0