Navigation Guide: Previous Repo: Config-Repo
| Next Repo: OAuth2-Service
To deploy this project to Heroku, update the configuration file
to point to the Heroku locations of the dependent services before deploying this to Heroku.
Required
git clone https://github.com/Prempeh-Gyan/1.2-Discovery-Service.git
The Discovery Service is the registry for all the services in the Bootiful Microservices
series (in other words its the phone book in which all the services in the series are registered).
Each service registers itself with the service registry and tells the registry where it lives (host, port, node name) and perhaps other service-specific metadata - things that other services can use to make informed decisions about it.
Spring Cloud supports both Netflix’s Eureka service registry and Consul but this Discovery Service uses Eureka since it can be bootstrapped automatically in Spring Cloud’s auto-configurations.
- Run the
Config-Server
to serve the property file for this Discovery-Service - Navigate into the source directory
cd 1.2-Discovery-Service
and execute the following command: mvn spring-boot:run