https://github.com/ayushkhodankar/spring-cloud-zuul
Zuul API Gateway Implementation
https://github.com/ayushkhodankar/spring-cloud-zuul
java spring-boot spring-cloud springcloud-config springcloud-demo zuul zuul-api-gateway zuul-gateway
Last synced: 2 months ago
JSON representation
Zuul API Gateway Implementation
- Host: GitHub
- URL: https://github.com/ayushkhodankar/spring-cloud-zuul
- Owner: Ayushkhodankar
- Created: 2023-01-19T16:47:54.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-01-01T06:37:26.000Z (5 months ago)
- Last Synced: 2025-01-23T06:32:03.470Z (4 months ago)
- Topics: java, spring-boot, spring-cloud, springcloud-config, springcloud-demo, zuul, zuul-api-gateway, zuul-gateway
- Language: Java
- Homepage:
- Size: 30.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Zuul - Spring Cloud
Zuul Server is an API Gateway application. It handles all the requests and performs the dynamic routing of microservice applications. It works as a front door for all the requests.
## Contents in the Repository
This repository consists of the implementation of the Zuul API Gateway in Java.
### Modules
1. **gateway-service**
- A module using Spring Cloud Netflix Zuul for running a Spring Boot application that acts as a proxy/gateway in our architecture.#### Dependency
Add the following dependency in `pom.xml` to enable the Zuul Gateway in the module:
```xml
org.springframework.cloud
spring-cloud-starter-netflix-zuul
```#### Configuration
Add the following properties in `application.properties`:
```properties
zuul.routes.doctor-service.url=http://localhost:8081/
zuul.routes.diagnosis-service.url=http://localhost:8082/
ribbon.eureka.enabled=false
server.port=8080
```2. **diagnosis-service**
- An API module that invokes services acknowledged in diagnosis.#### Configuration
Add the following properties in `application.properties`:
```properties
spring.application.name=diagnosis-service
server.port=8081
```3. **hospital-service**
- An API module that shows and presents the services provided in the hospital arena.#### Configuration
Add the following properties in `application.properties`:
```properties
spring.application.name=doctor-service
server.port=8082
```## Tools and Technologies Used
- **Spring Tool Suite 4**
- **Eclipse 2022-12**
- **Java Version**: 1.8
- **JDK**: 17
- **Zuul Netflix Support/Dependency**