This repository contains the source code for a microservices application built with Java and Spring Boot. The application consists of two microservices - one for managing employees and the other for managing departments. Service registration and discovery are handled by Eureka, and distributed tracing is implemented using Zipkin.
- Java: The programming language for the microservices.
- Spring Boot: The framework for building microservices.
- Eureka: Service registration and discovery.
- Zipkin: Distributed tracing for microservices.
- Manages employee information.
- Manages department information.
- Manages the api.
- Manages all the register service on eureka.
Ensure you have the following tools installed before running the microservices locally:
- Java Development Kit (JDK)
- Maven
- Docker
- Eureka Server
- Zipkin Server
-
Clone this repository to your local machine:
git clone https://github.com/Frawatson/Springboot-Microservices.git
-
Navigate to the projects directory and run the microservices:
cd employee-service/employee-service/src/main/java/com/watson/employeeservice/EmployeeServiceApplication.javacd department-service/department-service/src/main/java/com/watson/departmentservice/DepartmentServiceApplication.javacd service-registry/service-registry/src/main/java/com/watson/serviceregistry/ServiceRegistryApplication.javacd config-server/config-server/src/main/java/com/watson/configserver/ConfigServerApplication.javacd api-gateway/api-gateway/src/main/java/com/watson/apigateway/ApiGatewayApplication.java -
Build the microservices using Maven:
mvn clean install