{"id":18153205,"url":"https://github.com/rlnkoo/hotel-service","last_synced_at":"2026-05-11T05:39:05.136Z","repository":{"id":259775005,"uuid":"879394439","full_name":"rlNkoo/hotel-service","owner":"rlNkoo","description":"Hotel service from the backend side for guests and staff","archived":false,"fork":false,"pushed_at":"2024-11-19T16:31:34.000Z","size":40,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-07T00:52:15.426Z","etag":null,"topics":["aws-s3","java","jwt-token","mysql","spring","spring-security"],"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/rlNkoo.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-10-27T19:33:29.000Z","updated_at":"2024-11-19T16:31:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"b1826781-d307-41ca-af06-a9a294a292f5","html_url":"https://github.com/rlNkoo/hotel-service","commit_stats":null,"previous_names":["rlnkoo/hotel-service"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlNkoo%2Fhotel-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlNkoo%2Fhotel-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlNkoo%2Fhotel-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlNkoo%2Fhotel-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rlNkoo","download_url":"https://codeload.github.com/rlNkoo/hotel-service/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247574097,"owners_count":20960495,"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":["aws-s3","java","jwt-token","mysql","spring","spring-security"],"created_at":"2024-11-02T03:06:01.690Z","updated_at":"2026-05-11T05:39:05.091Z","avatar_url":"https://github.com/rlNkoo.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hotel Service Project\n\nThis is a Java-based backend application for managing hotel operations. The application provides essential functionalities for user authentication, room management, and booking services. Below is a detailed description of the implemented features and instructions for setting up and running the application.\n\n## Features\n\n### User Authentication and Authorization\n- **Registration**: Allows users to create an account with the necessary details.\n- **Login**: Authenticates users using their credentials.\n- **JWT Authorization**: Secures API endpoints with JSON Web Tokens (JWT) for authentication.\n- **Role Management**: Assigns roles to users (e.g., USER, ADMIN), determining their access levels within the application. \n\n### User Management\n- **Get All Users**: Admins can retrieve a list of all registered users.\n- **Get User by ID**: Retrieves details of a specific user using their ID.\n- **Delete User**: Allows admins to delete a user by their ID.\n- **Get Logged-in User Profile Info**: Retrieves profile information for the currently logged-in user.\n- **Get User Booking History**: Allows retrieval of booking history for a specific user by their ID.\n\n### Room Management\n- **Add New Room**: Admins can add a new room, specifying room details like type, price, and an optional photo.\n- **Get All Rooms**: Retrieves a list of all rooms available in the hotel.\n- **Get Room Types**: Provides a list of all available room types.\n- **Get Room by ID**: Retrieves details of a specific room using its ID.\n- **Get All Available Rooms**: Returns a list of all rooms that are currently available.\n- **Get Available Rooms by Date and Type**: Allows users to find available rooms based on check-in/check-out dates and room type.\n- **Update Room**: Admins can update details of an existing room, including type, price, and an optional photo.\n- **Delete Room**: Admins can remove a room from the system.\n\n### Booking Management\n- **Create Booking**: Allows users to book a room by specifying the room ID and user ID.\n- **Get All Bookings**: Admins can view a list of all bookings in the system.\n- **Find Booking by Confirmation Code**: Enables users to retrieve booking details using a unique confirmation code.\n- **Cancel Booking**: Allows users to cancel a booking by specifying the booking ID.\n\n### AWS S3 Integration\n- **File Upload and Download**: Supports uploading and downloading files (e.g., room images) to and from an AWS S3 bucket.\n\n### Exception Handling\n- **Comprehensive Exception Handling**: The application includes custom exceptions to handle various errors, ensuring user-friendly error messages.\n\n## Technologies Used\n\n- **Spring Boot**: Core framework for building the application.\n- **Spring Security**: For handling authentication and authorization.\n- **JWT**: For securing API endpoints.\n- **JPA/Hibernate**: For database interactions.\n- **MySQL**: Default database for storing hotel data.\n- **AWS S3**: For file storage and management.\n- **Maven**: For project management and dependency handling.\n- **DTO**: Used for data transfer between layers.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frlnkoo%2Fhotel-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frlnkoo%2Fhotel-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frlnkoo%2Fhotel-service/lists"}