Skip to content

kiptoo-4141/Spring-Boot-Microservice-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 

Repository files navigation

🌱 Spring-Boot-Microservice-API

Welcome to the Spring Boot Microservice API project! πŸš€
This project demonstrates a microservice architecture using Spring Boot v3.5.0, Java 17, and Maven, with support for employee and department management.
The services are registered with Netflix Eureka, and communication is routed through an API Gateway. 🎯


πŸ“¦ Tech Stack

Tool/Framework Version Purpose
🧰 Spring Boot 3.5.0 Application framework
β˜• Java 17 Programming language
πŸ› οΈ Maven β€” Dependency & build management
πŸ” Eureka Server Netflix OSS Service discovery
🌐 Spring Cloud Gateway β€” API Gateway for routing

🧩 Microservices Overview

This system consists of the following key components:

  1. πŸŽ›οΈ Service Registry (Eureka Server)

    • Manages service discovery and registration.
  2. 🏒 Department Service

    • Add/Search departments
    • Search employees under a department
  3. πŸ‘€ Employee Service

    • Add/Search employees
    • Assign employee to a department
  4. πŸ›£οΈ API Gateway

    • Central entry point for all service requests
    • Handles routing and load balancing

πŸ§ͺ Features

βœ… Add a new employee
βœ… Add a new department
βœ… Assign employees to departments
βœ… Retrieve employee by ID
βœ… Retrieve department by ID
βœ… Retrieve all employees in a department
βœ… Microservices registered in Eureka
βœ… Requests routed through a central API Gateway


πŸ—‚οΈ Project Structure

Each folder represents a standalone Spring Boot microservice.


πŸš€ Getting Started

πŸ”§ Prerequisites

Make sure you have the following installed:

  • Java 17+
  • Maven 3.6+
  • IDE (IntelliJ / VSCode / Eclipse)
  • Postman or Curl for testing

▢️ How to Run

  1. Clone the Repository
    git clone https://github.com/your-username/spring-boot-microservice-api.git
    cd spring-boot-microservice-api
    
    

Start the Eureka Server

cd service-registry
mvn spring-boot:run

Start the Department Service

cd ../department-service
mvn spring-boot:run


Start the Employee Service

cd ../employee-service
mvn spring-boot:run


Start the API Gateway

cd ../api-gateway
mvn spring-boot:run

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published