There are two ways to run the entire application:
-
On Local Machine
-
Using Docker
Running it all local is simple, do the following in sequence, in four different terminal windows:
Start up Eureka
cd sample-eureka
mvn spring-boot:runStart up Config server
cd sample-config
mvn spring-boot:runStart up Pong Service
cd sample-pong
mvn spring-boot:runStart up Ping Service
cd sample-ping
mvn spring-boot:runIf all the applications have come up cleanly, the endpoint should be available at http://localhost:8080
Running using Docker is even simpler, assuming that docker-compose and docker are installed on your box, just run the following:
Build the docker images for the microservices
mvn clean package docker:buildStart up Docker containers
docker-compose upThat is it, the endpoint should be available at http://dockerhost:8080