{"id":19449471,"url":"https://github.com/nihadamirov/spring-boot-microservices","last_synced_at":"2026-04-11T02:40:10.283Z","repository":{"id":249889788,"uuid":"831735426","full_name":"nihadamirov/spring-boot-microservices","owner":"nihadamirov","description":"A set of microservices built with Spring Boot, featuring service discovery with Eureka, load balancing with Ribbon, and an API gateway with Zuul.","archived":false,"fork":false,"pushed_at":"2024-07-30T21:15:31.000Z","size":96,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-07T23:36:16.870Z","etag":null,"topics":["api-gateway","docker","docker-compose","eureka","load-balancing","mongodb","postgresql","ribbon","service-discovery","spring-boot-microservices","swagger","zuul"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nihadamirov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-21T13:29:03.000Z","updated_at":"2024-08-06T19:59:20.000Z","dependencies_parsed_at":"2024-11-10T16:34:13.393Z","dependency_job_id":"d7f2fe5d-1294-4cf4-a670-146fed1a93f3","html_url":"https://github.com/nihadamirov/spring-boot-microservices","commit_stats":null,"previous_names":["nihadamirov/spring-boot-microservices"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nihadamirov%2Fspring-boot-microservices","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nihadamirov%2Fspring-boot-microservices/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nihadamirov%2Fspring-boot-microservices/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nihadamirov%2Fspring-boot-microservices/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nihadamirov","download_url":"https://codeload.github.com/nihadamirov/spring-boot-microservices/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240636716,"owners_count":19832930,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-gateway","docker","docker-compose","eureka","load-balancing","mongodb","postgresql","ribbon","service-discovery","spring-boot-microservices","swagger","zuul"],"created_at":"2024-11-10T16:32:43.973Z","updated_at":"2026-04-11T02:40:05.249Z","avatar_url":"https://github.com/nihadamirov.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Spring Boot Microservices Project\n\n## Overview\n\nThis project is a collection of microservices built using Spring Boot. It demonstrates various aspects of microservices architecture, including service discovery, load balancing, and API gateway integration.\n\n## Project Structure\n\n- **Eureka Server**: Provides service discovery and registration.\n- **API Gateway (Zuul)**: Manages routing and load balancing for incoming requests to various microservices.\n- **Order Service**: Manages order-related operations.\n- **Product Service**: Handles product-related operations.\n- **Customer Service**: Manages customer-related operations.\n- **MongoDB**: Database used by services to store data.\n- **Mongo Express**: Provides a web interface to interact with MongoDB.\n\n## Technologies Used\n\n- **Spring Boot**: Framework for building microservices.\n- **Eureka**: Service discovery and registration.\n- **Zuul**: API Gateway for routing and load balancing.\n- **Ribbon**: Client-side load balancing.\n- **MongoDB**: NoSQL database.\n- **Docker**: Containerization of services.\n\n## Setup and Running\n\n1. **Clone the Repository**\n\n   ```bash\n   git clone https://github.com/nihadamirov/spring-boot-microservices.git\n   cd spring-boot-microservices\n   ```\n\n2. **Build and Run the Services**\n\n   Ensure Docker is installed and running. Then build and start the services using Docker Compose:\n\n   ```bash\n   docker-compose up --build\n   ```\n\n3. **Access the Services**\n\n    - **Eureka Server**: [http://localhost:8761](http://localhost:8761)\n    - **API Gateway**: [http://localhost:8088](http://localhost:8088)\n    - **Order Service**: [http://localhost:8083/orders](http://localhost:8083/orders)\n    - **Product Service**: [http://localhost:8082/products](http://localhost:8082/products)\n    - **Customer Service**: [http://localhost:8081/customers](http://localhost:8081/customers)\n    - **Mongo Express**: [http://localhost:8090](http://localhost:8090)\n\n## Configuration\n\n- **Eureka Server**: Configured to listen on port 8761.\n- **API Gateway**: Configured to route requests to `order-service`, `product-service`, and `customer-service`.\n- **Ribbon**: Used within the API Gateway for client-side load balancing.\n\n## Testing\n\nYou can test the services by sending HTTP requests to the API Gateway. For example:\n\n- **List All Orders**: `GET http://localhost:8088/orders`\n- **Get a Product by ID**: `GET http://localhost:8088/products/{id}`\n- **Get All Products**: `GET http://localhost:8088/products`\n- **Create a Customer**: `POST http://localhost:8088/customers` with a JSON body\n\n## Contribution\n\nFeel free to fork the repository and submit pull requests. Contributions are welcome!\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnihadamirov%2Fspring-boot-microservices","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnihadamirov%2Fspring-boot-microservices","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnihadamirov%2Fspring-boot-microservices/lists"}