Keep things small!
-
Any JDK (e.g. OpenJDK 11).
-
Maven 3.6.x.
-
IDE (IntelliJ / Eclipse / Visual Studio Code).
$ cd java-microservice/service-registry
$ mvn spring-boot:run
# Eureka Server: Try it on browser
http://localhost:8081/
$ cd java-microservice/gateway
$ mvn spring-boot:run
# Try it on browser
http://localhost:8080/actuator/health
HTTP/1.1 200 OK
Content-Type: application/vnd.spring-boot.actuator.v3+json
Date: Fri, 27 Mar 2020 11:28:06 GMT
transfer-encoding: chunked
{
"status": "UP"
}
$ cd java-microservice/medicine-shop-inventory
$ mvn spring-boot:run
# Try it on browser
http://localhost:8082/admin/inventory/list
# Call through Gateway : Try it on browser
http://localhost:8080/api/medicine-shop-inventory/admin/inventory/list