##Instructions to run the samples:
###eureka-server
- Run
EurekaApplicationas a Spring boot application
###random-number-ms (normal microservice that generates random numbers)
- Run
RandomNameMsApplicationas a Spring boot application with spring.profiles.active=random1 -> localhost:9999/numbers - Run
RandomNameMsApplicationas a Spring boot application with spring.profiles.active=random2 -> localhost:9998/numbers
You should see two instances on the Eureka console localhost:8761
###random-letter-ms
- Move to
random-letter-msdirectory and runnpm install - Start an instance on the default port (3000):
node bin/www-> localhost:3000/letters - Start another console
- Move to
random-letter-msand set PORT=3001 as environment variable (win: SET PORT=3001) - Start another instance on the letter ms
node bin/www-> localhost:3001/letters
###random-letter-sidecar
- Run
RandomLetterMsSidecarApplicationas a Spring boot application with spring.profiles.active=random1 -> localhost:9595/letters -
- Run
RandomLetterMsSidecarApplicationas a Spring boot application with spring.profiles.active=random2 -> localhost:9696/letters
- Run