{"id":20164363,"url":"https://github.com/stephenombuya/hotelmanagementsystem","last_synced_at":"2025-06-23T09:05:28.539Z","repository":{"id":186099310,"uuid":"674624863","full_name":"stephenombuya/hotelmanagementsystem","owner":"stephenombuya","description":"A hotel management system built using Spring Boot and MySQL. This application helps manage guest reservations, room bookings, billing, and other core operations of a hotel.","archived":false,"fork":false,"pushed_at":"2024-12-14T11:26:20.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-03T03:13:58.277Z","etag":null,"topics":["backend","hotel-management-system","java","microservices","mysql-database","springboot"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stephenombuya.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}},"created_at":"2023-08-04T11:55:36.000Z","updated_at":"2024-12-14T13:16:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"61a1e0b6-1aa7-4a0a-9f71-ced3a0458c23","html_url":"https://github.com/stephenombuya/hotelmanagementsystem","commit_stats":null,"previous_names":["stephen07383/hotelmanagementsystem","stephenombuya/hotelmanagementsystem"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stephenombuya/hotelmanagementsystem","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephenombuya%2Fhotelmanagementsystem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephenombuya%2Fhotelmanagementsystem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephenombuya%2Fhotelmanagementsystem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephenombuya%2Fhotelmanagementsystem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stephenombuya","download_url":"https://codeload.github.com/stephenombuya/hotelmanagementsystem/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephenombuya%2Fhotelmanagementsystem/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261449740,"owners_count":23159802,"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":["backend","hotel-management-system","java","microservices","mysql-database","springboot"],"created_at":"2024-11-14T00:34:13.418Z","updated_at":"2025-06-23T09:05:23.513Z","avatar_url":"https://github.com/stephenombuya.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hotel Management System\n\nA hotel management system built using **Spring Boot** and **MySQL**. This application helps manage guest reservations, room bookings, billing, and other core operations of a hotel.\n\n## Features\n\n- **Guest Management**: Allows for managing guest information (name, email).\n- **Room Management**: Provides room availability and reservation details, including room type (Single, Double, Suite).\n- **Reservation System**: Handles guest reservations for rooms, check-in, and check-out.\n- **Billing System**: Generates bills for guests, tracks payment status, and updates payment details.\n- **JPA/Hibernate Integration**: Uses Java Persistence API (JPA) and Hibernate for database interaction with MySQL.\n\n## Technologies Used\n\n- **Spring Boot**: The primary framework for building the application.\n- **Spring Data JPA**: For working with relational databases using JPA (Java Persistence API).\n- **MySQL**: A relational database used to store application data.\n- **Spring Boot Starter Web**: For building RESTful web services.\n- **Spring Boot Starter Security**: Optional, for adding security features like authentication and authorization.\n- **Thymeleaf**: For rendering HTML templates if needed.\n- **JUnit 5**: For unit and integration testing.\n\n## Requirements\n\n- **Java 11+** (Ensure Java 11 or later is installed on your machine).\n- **MySQL Database**: The project uses MySQL for persistence. Set up a MySQL instance on your machine or use a hosted MySQL service.\n- **Maven**: The project uses Maven for dependency management and building.\n\n## Setting Up the Project\n\n### 1. Clone the repository\n\n```bash\ngit clone https://github.com/stephenombuya/hotelmanagementsystem/tree/main\ncd hotel-management-system\n```\n\n### 2. Set Up MySQL Database\n\n- Create a new MySQL database for the project (e.g., hotel_management_system).\n- Update the application.properties file with your MySQL connection details:\n\n```properties\nspring.datasource.url=jdbc:mysql://localhost:3306/hotel_management_system\nspring.datasource.username=root\nspring.datasource.password=root_password\nspring.jpa.hibernate.ddl-auto=update\nspring.jpa.database-platform=org.hibernate.dialect.MySQL8Dialect\n```\n\n### 3. Build and Run the Project\n\n **Using Maven**\n- Run the following command to build and run the application:\n\n```bash\nmvn spring-boot:run\n```\n- This will start the Spring Boot application on the default port `8080`.\n\n **Running Tests**\n- To run the unit tests, execute the following command:\n\n```bash\nmvn test\n```\n\n### 4. Accessing the Application\n\n- Once the application is running, you can access it in your browser at:\n\n```bash\nhttp://localhost:8080\n```\n\n\n### **Database Schema**\nThe project uses the following tables in MySQL:\n\n- **Room**: Stores room details like room number, type (Single, Double, Suite), and availability.\n- **Guest**: Stores guest details such as name and email.\n- **Reservation**: Stores reservation details, including guest, room, check-in, and check-out dates.\n- **Bill**: Stores billing details, including the amount and payment status.\n\n\n\n### **API Endpoints**\nHere are some of the key endpoints exposed by the application:\n\n- **GET** /api/guests - Get all guests.\n- **POST** /api/guests - Create a new guest.\n- **GET** /api/rooms - Get all available rooms.\n- **POST** /api/rooms - Create a new room.\n- **POST** /api/reservations - Make a new reservation.\n- **GET** /api/bills - Get all bills.\n- **POST** /api/bills - Create a new bill.\n\n\n### **Contributing**\nIf you'd like to contribute to this project, feel free to fork the repository, make changes, and submit a pull request. Please ensure that you follow the coding standards and write unit tests for new features or fixes.\n\n\n### **License**\nThis project is licensed under the Apache 2.0 License - see the `LICENSE` file for details.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephenombuya%2Fhotelmanagementsystem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstephenombuya%2Fhotelmanagementsystem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephenombuya%2Fhotelmanagementsystem/lists"}