{"id":21141181,"url":"https://github.com/shz-code/hotel-booking","last_synced_at":"2026-04-06T21:30:53.495Z","repository":{"id":217660554,"uuid":"744157666","full_name":"shz-code/hotel-booking","owner":"shz-code","description":"Hotel booking mern app","archived":false,"fork":false,"pushed_at":"2024-06-19T14:14:49.000Z","size":865,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-14T13:14:13.203Z","etag":null,"topics":["express","hotel-booking","mern-stack","mongodb","node","react"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/shz-code.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-01-16T18:26:37.000Z","updated_at":"2024-06-19T14:14:52.000Z","dependencies_parsed_at":"2024-06-20T00:55:44.026Z","dependency_job_id":null,"html_url":"https://github.com/shz-code/hotel-booking","commit_stats":null,"previous_names":["shz-code/hotel-booking"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shz-code/hotel-booking","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shz-code%2Fhotel-booking","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shz-code%2Fhotel-booking/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shz-code%2Fhotel-booking/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shz-code%2Fhotel-booking/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shz-code","download_url":"https://codeload.github.com/shz-code/hotel-booking/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shz-code%2Fhotel-booking/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31491094,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-06T17:22:55.647Z","status":"ssl_error","status_checked_at":"2026-04-06T17:22:54.741Z","response_time":112,"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":["express","hotel-booking","mern-stack","mongodb","node","react"],"created_at":"2024-11-20T07:24:24.930Z","updated_at":"2026-04-06T21:30:53.464Z","avatar_url":"https://github.com/shz-code.png","language":"JavaScript","readme":"# HOTel\n\nHOTel is a full-stack MERN application designed to facilitate hotel room bookings. It features a minimalistic and responsive design that works seamlessly across both desktop and mobile devices. The application allows users to sign up, log in, filter rooms based on facilities, and book rooms. The system ensures secure user authentication with hashed passwords using bcrypt and manages state efficiently with Redux.\n\nShort Introduction Video:\n\n[![YouTube](https://img.shields.io/badge/HOTel-%23FF0000.svg?logo=YouTube\u0026logoColor=white)](https://youtu.be/Go9t8Llwy8I)\n\n# ScreenShots\n\n![Landing Page](./client/src/assets/images/HOTel1.png)\n![Login Page](./client/src/assets/images/HOTel2.png)\n\n# Features\n\n- **User Authentication**: Users can sign up and log in. Passwords are securely hashed using bcrypt.\n- **Room Booking**: Users can filter rooms based on facilities and book them.\n- **Booking Capacity Management**: The application tracks the booking capacity of each - room. If the room's booking capacity is reached, a message is displayed to the user.\n- **Responsive Design**: The frontend is designed to be simple, minimal, and responsive, providing a seamless experience on both desktop and mobile devices.\n\n# Technologies Used\n\n- **Frontend**: React\n- **State Management**: Redux\n- **Backend**: Node.js\n- **Database**: MongoDB\n\n# Installation\n\n### Prerequisites\n\n- Node.js\n- MongoDB\n- npm or yarn\n\n# Steps\n\n- Clone the repository:\n\n```sh\nhttps://github.com/shz-code/hotel-booking.git\ncd hotel-booking\n```\n\n- Install backend dependencies:\n\n```sh\ncd backend\nnpm install\n```\n\n- Install frontend dependencies:\n\n```sh\ncd ../client\nnpm install\n```\n\n#### Set up environment variables:\n\nCreate a `.env` file in the backend directory and add the following variables:\n\n```env\nPORT=4003\nLOCAL_DB_URL=your_mongodb_url\nNODE_ENV=development\n```\n\n- Create a `.env` file in the frontend directory and add the following variables:\n\n```env\nVITE_API_URL=http://localhost:4003/api\n```\n\n- Run the backend server:\n\n```sh\ncd backend\nnpm start\n```\n\n- Run the frontend server:\n\n```sh\ncd ../client\nnpm run dev\n```\n\n# Usage\n\n- **Sign Up**: Users can create a new account by providing an phone number and password.\n- **Log** In: Users can log in using their pphone number and password.\n- **Filter Rooms**: Users can filter rooms based on available facilities.\n- **Book Rooms**: Users can book rooms if the booking capacity has not been reached. If the capacity is reached, a message will be displayed.\n\n# Project Structure\n\n- backend/: Contains the Node.js server code and API routes.\n- models/: Mongoose models for MongoDB.\n- routes/: API routes for authentication, room filtering, and booking.\n- client/: Contains the React application code.\n- src/: Main source folder.\n- components/: React components.\n- features/: Redux actions, reducers, and store configuration.\n\n# Contributing\n\nContributions are welcome! Please fork the repository and submit a pull request for any features, bug fixes, or enhancements.\n\n# License\n\nThis project is licensed under the MIT License. See the LICENSE file for details.\n\n# Contact\n\nFor any inquiries or support, please contact your email/ Linkedin.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshz-code%2Fhotel-booking","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshz-code%2Fhotel-booking","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshz-code%2Fhotel-booking/lists"}