Skip to content

SamChenYu/SpringMicroservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌱 Spring Microservices 🔗

This repository demonstrates a microservices architecture in Spring Boot

  • project-services: Handles project information.
  • developer-services: Handles developer information and interacts with project-services to fetch project details for each developer.
  • Service Registry (Eureka): Enables service discovery.
  • Cloud Gateway (Spring Cloud Gateway): Provides API routing, load balancing and gateway functionality.

A docker-compose.yml file is included for running all services locally using Docker.

docker-compose up -d

For users, all requests should be accessed through the Cloud Gateway at http://localhost:8085, with either /developers or /projects endpoint.

Default Container Ports

  • developer-services:
    • Backend: 8080
    • MongoDB: 27017
    • Mongo Express: 8081
  • project-services:
    • Backend: 8082
    • MySQL: 3306
    • phpMyAdmin: 8083
  • Service Registry (Eureka): 8761
  • Cloud Gateway: 8085

About

Microservices architecture in Spring Boot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published