{"id":20089102,"url":"https://github.com/amanastel/hotel-management-microservices","last_synced_at":"2025-08-07T01:36:48.309Z","repository":{"id":200858835,"uuid":"706352423","full_name":"Amanastel/Hotel-Management-Microservices","owner":"Amanastel","description":"Welcome to our Microservices Project! 🚀 Explore a modern architecture for a hotel management system, built using Spring Boot and Spring Cloud.","archived":false,"fork":false,"pushed_at":"2023-10-31T15:40:40.000Z","size":228,"stargazers_count":14,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-06T02:39:56.555Z","etag":null,"topics":["eureka-client","eureka-server","gateway-api","hibernate","java","maven","microservice","mongodb","mysql","netlify-plugin","postgresql","spring-boot","spring-security","springcloud","webflux"],"latest_commit_sha":null,"homepage":"https://drive.google.com/file/d/1uJX7_nho_3pQEkUiB2cj8MjbvNscRZou/view?usp=sharing","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Amanastel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2023-10-17T19:25:18.000Z","updated_at":"2025-03-18T15:39:52.000Z","dependencies_parsed_at":"2023-10-23T16:27:40.961Z","dependency_job_id":"e340340c-0a16-47a6-bed8-6b7da5bad6b4","html_url":"https://github.com/Amanastel/Hotel-Management-Microservices","commit_stats":null,"previous_names":["amanastel/hotel-management-microservices"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Amanastel/Hotel-Management-Microservices","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amanastel%2FHotel-Management-Microservices","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amanastel%2FHotel-Management-Microservices/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amanastel%2FHotel-Management-Microservices/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amanastel%2FHotel-Management-Microservices/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Amanastel","download_url":"https://codeload.github.com/Amanastel/Hotel-Management-Microservices/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amanastel%2FHotel-Management-Microservices/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269185683,"owners_count":24374625,"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","status":"online","status_checked_at":"2025-08-06T02:00:09.910Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["eureka-client","eureka-server","gateway-api","hibernate","java","maven","microservice","mongodb","mysql","netlify-plugin","postgresql","spring-boot","spring-security","springcloud","webflux"],"created_at":"2024-11-13T16:16:25.635Z","updated_at":"2025-08-07T01:36:48.284Z","avatar_url":"https://github.com/Amanastel.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hotel Management Microservices\n\nWelcome to the Hotel Management Microservices project. This application is designed to manage various aspects of a hotel, including booking rooms, adding hotels, and handling user ratings.\n\n## Table of Contents\n- [Features](#features)\n- [Tech Stack](#tech-stack)\n- [Getting Started](#getting-started)\n- [Installation](#installation)\n- [Configuration](#configuration)\n- [Usage](#usage)\n- [Checking Service Status](#checking-service-status)\n- [API Endpoints](#api-endpoints)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Features\nThis application provides the following features:\n\n### User Service\n- User registration and authentication.\n- User can book hotel rooms.\n- User can cancel bookings.\n- Wallet system to track all transactions for users.\n\n### Hotel Service\n- Add hotels with details.\n- Add rooms to hotels.\n- Get hotel details by ID or name.\n- Get a list of all available rooms in a hotel.\n- Get a list of all booked rooms in a hotel.\n\n### Booking Service\n- Book rooms in hotels.\n- Get booking details by booking ID.\n- Get a list of all bookings.\n\n### Rating Service\n- Add ratings and reviews for hotels.\n- Get all ratings.\n- Get ratings by user ID or hotel ID.\n\n### Service Registry\n- Register and discover microservices.\n\n### Configuration Server\n- Manage centralized configurations for microservices.\n\n### API Gateway\n- Gateway for accessing microservices.\n\n## Tech Stack\n- Java\n- Spring Boot\n- Spring Cloud\n- Spring Cloud Eureka\n- Spring Cloud Config\n- Spring Security\n- OAuth 2.0\n- Spring Data JPA\n- Spring Web\n- Spring Data MongoDB\n- Spring Data REST\n- Spring Cloud Gateway\n- Netflix Eureka\n- Thymeleaf\n- MySQL\n- MongoDB\n- Okta\n- Git\n\n## Getting Started\nTo get started with the project, make sure you have the required tools and dependencies installed.\n\n### Installation\n1. Clone this repository: `git clone https://github.com/Amanastel/Hotel-Management-Microservices.git`\n2. Navigate to the project directory: `cd Hotel-Management-Microservices`\n\n### Configuration\n- Configure the properties of each microservice according to your requirements.\n\n### Usage\n- Run each microservice individually to start the Hotel Management system.\n\n### Checking Service Status\n- **Eureka Server**:\n  - Eureka Dashboard: `http://localhost:8761`\n    - You can check the status of all registered microservices here. It will show which services are up and running and their corresponding instances.\n\nInstances currently registered with Eureka:\n\n- **API-GATEWAY**:\n  - Availability Zones: UP (1) - `192.168.1.4:API-GATEWAY:8086`\n\n- **CONFIG-SERVER**:\n  - Availability Zones: UP (1) - `192.168.1.4:CONFIG-SERVER:8085`\n\n- **HOTELS-SERVICE**:\n  - Availability Zones: UP (1) - `192.168.1.4:hotels-service:8082`\n\n- **RATING-SERVICE**:\n  - Availability Zones: UP (1) - `192.168.1.4:rating-service:8083`\n\n- **USERS-SERVICE**:\n  - Availability Zones: UP (1) - `192.168.1.4:users-service:8081`\n\n- **API Gateway Default URL**: `http://localhost:8086`\n\n### User Service Routes\n- User login: `http://localhost:8086/auth/login`\n  - Login on this URL to obtain an access token. You can use this access token to make authenticated requests to other service endpoints.\n- Fetch all users: `http://localhost:8086/users/all`\n- User registration: `http://localhost:8086/users/register`\n- User login: `http://localhost:8086/users/login`\n- Book a hotel room: `http://localhost:8086/users/addBooking`\n- Complete a Booking hotel: `http://localhost:8086/users/completeBooking/{bookingId}`\n- Cancel a booking: `http://localhost:8086/users/cancelBooking/{bookingId}`\n- Add wallet Balance transactions: `http://localhost:8086/users/wallet/addMoney/{email}?amount=00.0`\n- View wallet Balance transactions: `http://localhost:8086/users/wallet/getBalance/{email}`\n- View wallet transactions: `http://localhost:8086/users/wallet/getTransactions/{email}`\n\n### Hotel Service Routes\n- Fetch all hotels: `http://localhost:8086/hotels/all`\n- Fetch hotel by ID: `http://localhost:8086/hotels/{hotelId}`\n- Add a hotel: `http://localhost:8086/hotels/add`\n- Add a room to a hotel: `http://localhost:8086/hotels/{hotelId}/rooms/add`\n- Book a room in a hotel: `http://localhost:8086/hotels/{hotelId}/bookings/add`\n- Get all bookings in a hotel: `http://localhost:8086/hotels/{hotelId}/bookings/all`\n\n### Rating Service Routes\n- Fetch all ratings: `http://localhost:8086/ratings/all`\n- Add a rating: `http://localhost:8086/ratings/add`\n- Fetch ratings by user ID: `http://localhost:8086/ratings/user/{userId}`\n- Fetch ratings by hotel ID: `http://localhost:8086/ratings/hotel/{hotelId}`\n\n## Contributing\nContributions are welcome. Please create an issue or pull request if you'd like to contribute to this project.\n\n## License\nThis project is licensed under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famanastel%2Fhotel-management-microservices","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famanastel%2Fhotel-management-microservices","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famanastel%2Fhotel-management-microservices/lists"}