TornadoInsight/Hotel-Management-System
Hotel booking system for customers added with an admin feature to manage reservations.
Hotel Management System
This project was created as a learning exercise during my early days of exploring web programming. It is not intended for commercial use or enterprise-grade deployment. As a result, the code may contain vulnerabilities, as the focus was on simplicity and functionality rather than robustness or security.
If you’d like to customize or improve the project, feel free to fork it and make your own changes. Please note that I am unable to dedicate time to refactoring or enhancing this project further.
Thank you for understanding!
Table of Contents
Setup
- Make sure you have
MySQLand a web server to run/interpretPHPin your system. - Clone or download the repo and put it to
xampp/htdocs/if you're using windows, otherwise check tutorial(s) for your corresponding web server and OS. - Install dependencies for JavaScript,
npm installand PHP,composer install. - Create a database named
hoteland run the scripthotel.sqlto create tables and populate data. Make sure your configuration matches withapp/DB.php, otherwise make the desired changes. - Run the app.
Create an account
- Go to the registration page (register.php) i.e. http://hotel.local/register.php
- Enter your info.
- To make an admin account
- 3.1 go to your hotel database
- 3.2 select table customer
- 3.3 select an account
- 3.4 change the value of isadmin to 1
Screenshots
Customer
- Room pricing
- Reservation form
- View reservation(s)
- About user
Admin
- Manage reservations
For developer
Run PHP unit tests
$ ./vendor/bin/phpunit tests
$ ./vendor/bin/phpunit tests/CustomerHandlerTest.php
$ ./vendor/bin/phpunit --filter testUpdateCustomer tests
Run PHP code beautifier and fixer
$ ./vendor/bin/phpcbf app/process_login.php --standard=ruleset.xml
$ ./vendor/bin/phpcbf app/*/*.php --standard=ruleset.xml
Run ESLint to format/fix JavaScript code
npm run eslint
npm run eslint -- --fix
Similar Projects
Discover other similar projects and AI models.
QloApps is a Free and Open-source hotel management and reservation system to take a hotel business online. QloApps offers a Property Management System (PMS), a Booking Engine, and an attractive Hotel Website. Elevate hotel operations with QloApps to streamline processes and provide an enhanced experience for both hoteliers and guests.
📦 Open-source equipment rental platform. Manage inventory, reservations, customers & generate contracts. Beautiful storefronts for your rental business. Self-host for free or use our cloud. Built with Next.js, TypeScript & Tailwind.
This project is aimed at the Sultanate of Oman and offers the ability to book appointments at women's beauty salons or request hairdressers to come to your home. Additionally, each salon has an online store to sell beauty products
Reverse engineer anything with agents, from app behavior down to native binaries.
freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.
Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.
Interactive roadmaps, guides and other educational content to help developers grow in their careers.