This project is an Eureka Server that acts as a service registry for a microservices-based architecture. Clients can register and discover other services within the ecosystem.
Link to see: http://localhost:8761
Ensure you have the following installed:
- Java 21 (or higher).
- Gradle (version 7.6 or higher).
- An IDE compatible with Spring Boot (e.g., IntelliJ IDEA or STS).
- Internet connection to download dependencies.
git clone <REPOSITORY_URL>
cd <PROJECT_NAME>Run the following command to build the project and verify dependencies:
./gradlew clean buildYou can start the Eureka Server with the following command:
./gradlew bootRunBy default, the server will be available at http://localhost:8761.
To register a client with the Eureka Server, configure the client's application.yml file as follows:
eureka:
client:
service-url:
defaultZone: http://localhost:8761/eureka/src/main/java: Main source code.src/main/resources/application.yml: Configuration file for the Eureka Server.build.gradle: Gradle configuration file.README.md: Project documentation.
- Java 21
- Spring Boot 3.2
- Spring Cloud 2023.0
- Gradle
The application.yml file includes the basic parameters for configuring the server:
server:
port: 8761
eureka:
client:
register-with-eureka: false
fetch-registry: false
instance:
hostname: localhost
spring:
application:
name: eureka-server- David
Backend and Fullstack Developer.
Always eager to learn and improve microservices projects!
