A robust desktop-based application designed to streamline daily hotel operations, from guest management to billing and staff administration.
This Hotel Management System is a desktop application developed using Java (Swing) and MySQL. It provides an intuitive interface for hotel staff to manage room records, customer details, and employee data efficiently. The system automates the checkout process, handles billing calculations, and ensures secure access through role-based logins.
- Role-Based Login: Secure authentication with distinct portals for Admin and Regular Users.
- Room Management: Add new rooms, update status (Cleaned/Occupied), and search availability.
- Customer Management: seamless check-in process to add customer details and allocate rooms.
- Checkout & Billing:
- Automatic calculation of pending amounts.
- Support for extra service charges (Mini-bar, Laundry, etc.).
- Updates room status instantly upon checkout.
- Employee Records: View, search, and manage details for all hotel staff.
- Driver Management: dedicated module to track and manage hotel driver information.
Before running the application, ensure you have the following installed:
- Java Development Kit (JDK): Version 8 or higher.
- Database: MySQL Server.
- Libraries (Jars):
mysql-connector-java-8.0.28.jar(For Database Connectivity)rs2xml.jar(For rendering DB tables in Java Swing)
Follow these steps to get the project running on your local machine.
- Open your MySQL Command Line or MySQL Workbench.
- Copy the content of the
database.sqlfile provided in this repository. - Execute the script to create the database and tables.
- Clone the Repository
Bashgit clone [https://github.com/your-username/hotel-management-system.git](https://github.com/your-username/hotel-management-system.git)
- Open the project in your preferred IDE (IntelliJ, Eclipse, or NetBeans)
- Add Libraries:
- Add mysql-connector-java and rs2xml to your project's Build Path / External Libraries.
Open src/hotel/management/system/connects.java (or your specific connection file) and update the credentials:
c = DriverManager.getConnection("jdbc:mysql:///hotelmanagementsystem", "YOUR_USERNAME", "YOUR_PASSWORD");- Navigate to the main class file.
- Run the application.
- Use the Default Credentials below to test the role-based access:RoleUsernamePasswordAdminTomTomUserJerryJerry
Contributions, https://www.google.com/search?q=issues, and feature requests are welcome!Feel free to check the issues page if you want to contribute.
- Fork the Project
- Create your Feature Branch (git checkout -b feature/NewFeature)
- Commit your Changes (git commit -m 'Add some NewFeature')
- Push to the Branch (git push origin feature/NewFeature)
- Open a Pull Request