##Instructions to run the samples:
###eureka-server
- Run
EurekaApplication
as a Spring boot application
###random-number-ms (normal microservice that generates random numbers)
- Run
RandomNameMsApplication
as a Spring boot application with spring.profiles.active=random1 -> localhost:9999/numbers - Run
RandomNameMsApplication
as 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-ms
directory and runnpm install
- Start an instance on the default port (3000):
node bin/www
-> localhost:3000/letters - Start another console
- Move to
random-letter-ms
and 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
RandomLetterMsSidecarApplication
as a Spring boot application with spring.profiles.active=random1 -> localhost:9595/letters -
- Run
RandomLetterMsSidecarApplication
as a Spring boot application with spring.profiles.active=random2 -> localhost:9696/letters
- Run