A comprehensive web application for managing hotel reservations, rooms, and customers.
- User authentication and role-based access control
- Room management (add, edit, delete, view)
- Customer management (add, edit, delete, view)
- Reservation handling (create, edit, cancel, check-in, check-out)
- Dashboard with statistics and recent activity
- Search functionality for rooms, customers, and reservations
- Backend: Flask (Python web framework)
- Database: SQLAlchemy with SQLite
- Frontend: HTML, CSS, JavaScript
- UI Framework: Bootstrap 4
- Charts: Chart.js
- Icons: Font Awesome
-
Clone this repository:
git clone <https://github.com/ozgucdlg/Hotel-Reservation-Management-System-.git> cd hotel-reservation-system -
Create and activate a virtual environment:
python -m venv .venv source .venv/bin/activate # On Windows: .venv\Scripts\activate -
Install dependencies:
pip install flask flask-sqlalchemy werkzeug -
Initialize the database (first time only):
python init_db.py -
Run the application:
python app.py -
Open your browser and navigate to
http://127.0.0.1:5000/
hotel-reservation-system/
├── app.py # Main application file
├── models.py # Database models
├── init_db.py # Database initialization script
├── static/ # Static files (CSS, JS)
│ ├── css/ # CSS files
│ │ └── style.css # Main stylesheet
│ └── js/ # JavaScript files
├── templates/ # HTML templates
│ ├── base.html # Base template with common elements
│ ├── index.html # Home page
│ ├── login.html # Login page
│ ├── dashboard.html # Dashboard page
│ ├── rooms.html # Room management
│ ├── customers.html # Customer management
│ └── ... # Other templates
└── README.md # This file
To access the admin dashboard, use the following credentials:
- Username: admin
- Password: adminpass
- Log in as an admin
- Navigate to "Rooms" in the navigation menu
- Click "Add New Room"
- Fill in the room details
- Click "Add Room"
- Log in as an admin
- Navigate to "Reservations" in the navigation menu
- Click "Add New Reservation"
- Select a customer, room, and date range
- Click "Create Reservation"
This project is licensed under the MIT License - see the LICENSE file for details.