https://github.com/samchenyu/springmicroservice
https://github.com/samchenyu/springmicroservice
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/samchenyu/springmicroservice
- Owner: SamChenYu
- Created: 2025-02-22T21:59:50.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-23T00:29:20.000Z (over 1 year ago)
- Last Synced: 2025-02-23T00:34:58.141Z (over 1 year ago)
- Language: Java
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🌱 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.
```bash
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