{"id":16772453,"url":"https://github.com/nitins87/hotel-booking-ms","last_synced_at":"2026-05-04T01:34:23.349Z","repository":{"id":213580895,"uuid":"734432975","full_name":"NitinS87/hotel-booking-ms","owner":"NitinS87","description":"This repository contains the codebase for a Hotel Room Booking microservices project. The system is divided into three main microservices: API Gateway, Booking Service, and Payment Service.","archived":false,"fork":false,"pushed_at":"2023-12-26T11:40:07.000Z","size":302,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-07T23:49:28.988Z","etag":null,"topics":["api-gateway","eureka","eureka-client","eureka-discovery-service","eureka-server","microservices-architecture","spring","spring-boot","spring-mvc"],"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/NitinS87.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":"2023-12-21T17:03:49.000Z","updated_at":"2024-05-16T11:21:57.000Z","dependencies_parsed_at":"2023-12-26T12:59:37.536Z","dependency_job_id":null,"html_url":"https://github.com/NitinS87/hotel-booking-ms","commit_stats":null,"previous_names":["nitins87/hotel-booking-ms"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NitinS87/hotel-booking-ms","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NitinS87%2Fhotel-booking-ms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NitinS87%2Fhotel-booking-ms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NitinS87%2Fhotel-booking-ms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NitinS87%2Fhotel-booking-ms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NitinS87","download_url":"https://codeload.github.com/NitinS87/hotel-booking-ms/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NitinS87%2Fhotel-booking-ms/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32591601,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"ssl_error","status_checked_at":"2026-05-03T22:09:10.534Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","eureka","eureka-client","eureka-discovery-service","eureka-server","microservices-architecture","spring","spring-boot","spring-mvc"],"created_at":"2024-10-13T06:42:44.811Z","updated_at":"2026-05-04T01:34:23.332Z","avatar_url":"https://github.com/NitinS87.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hotel Room Booking Microservices Project\n\n## Overview\n\nThis repository contains the codebase for a Hotel Room Booking microservices project. The system is divided into three main microservices: API Gateway, Booking Service, and Payment Service.\n\n## High-Level Design (HLD)\n\n![image](https://github.com/NitinS87/hotel-booking-ms/assets/80587065/601c40f4-7760-4ef7-acc7-15281c86b94a)\n\n\n\n## Project Structure\n\n- **API Gateway (port 8080):** Entry point for external requests, responsible for routing to internal microservices.\n- **Booking Service (port 8081):** Manages user bookings, room generation, and communication with the Payment Service.\n- **Payment Service (port 8083):** Simulates payment transactions and returns a transactionId to the Booking Service.\n\n## Microservices Communication Flow\n\n*Explain the flow of communication between microservices using diagrams or textual descriptions.*\n\n## How to Run Locally\n\n1. Clone the repository: `git clone https://github.com/your-username/hotel-booking-microservices.git`\n2. Navigate to each microservice directory and run: `mvn spring-boot:run`\n\n## API Documentation\n\n### Postman Collection Screenshots\n\n#### Endpoint 1: /booking (Booking Service)\n\n![Booking Endpoint](https://github.com/NitinS87/hotel-booking-ms/assets/80587065/e149720a-39ce-45d7-895d-ad9bae304c12)\n\n![DB](https://github.com/NitinS87/hotel-booking-ms/assets/80587065/3572b113-d52f-488c-b6f8-6952be97ee8d)\n\n*Provide a brief description of the booking endpoint and its parameters.*\n\n\n\n#### Endpoint 2: /transaction (Payment Service)\n\n![Transaction Endpoint](https://github.com/NitinS87/hotel-booking-ms/assets/80587065/4c29c70d-2b09-4bf7-b004-a8152fa77e50)\n\n![DB](https://github.com/NitinS87/hotel-booking-ms/assets/80587065/6bacc07c-76d9-422a-8375-24b5bb1bdd3c)\n\n*Describe the transaction endpoint and its input/output.*\n\n\n\n#### Endpoint 3: /booking/{bookingId} (Booking Service)\n\n![Booking Details](https://github.com/NitinS87/hotel-booking-ms/assets/80587065/911660d3-44f9-47f6-8388-7bd186e6b756)\n\n*Insert a brief description of the new endpoint to get booking details by booking ID.*\n\n\n\n#### Endpoint 4: /transaction/{transactionId} (Payment Service)\n\n*Provide details about the new endpoint to get transaction details by transaction ID.*\n![Transaction](https://github.com/NitinS87/hotel-booking-ms/assets/80587065/ad0e4169-b45e-402b-86b2-e81278599fb0)\n![Invalid Booking Id](https://github.com/NitinS87/hotel-booking-ms/assets/80587065/2ca0e302-d6f4-45c8-a668-01cf0846809d)\n![Invalid Mode of Payment](https://github.com/NitinS87/hotel-booking-ms/assets/80587065/223effca-05b5-4492-8ea6-4472cff7e8e3)\n\n\n\n![Eureka Server](https://github.com/NitinS87/hotel-booking-ms/assets/80587065/0237181f-a55d-4037-9f35-897d6dc57e42)\n\n\n\n## Dependencies\n\n### Booking Service\n\n- Spring Cloud Netflix Eureka Client\n- Spring Boot Web\n- Spring Boot Data JPA\n- Spring Boot Devtools\n\n### Payment Service\n\n- Spring Cloud Netflix Eureka Client\n- Spring Boot Web\n- Spring Boot Data JPA\n- Spring Boot Devtools\n\n### API Gateway\n\n- Spring Boot Actuator\n- Spring Cloud Netflix Eureka Client\n- Spring Boot Devtools\n\n### Eureka Server\n\n- Spring Cloud Netflix Eureka Client\n- Eureka Discovery Server\n- Spring Boot Devtools\n\n*Note: Additional dependencies might be required based on your project logic.*\n\n## Contributors\n\n- Nitin Sharma(https://github.com/NitinS87) - 20CSU074\n- Neeraj Yadav (https://github.com/contributor-1) - 20CSU070\n- Niharika Joshi (https://github.com/contributor-2) - 20CSU071\n- Raghav Jindal (https://github.com/contributor-2) - 20CSU084\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitins87%2Fhotel-booking-ms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnitins87%2Fhotel-booking-ms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitins87%2Fhotel-booking-ms/lists"}