A Flask-based Hotel Reservation System connecting to a remote MySQL database.
-
Create a Virtual Environment:
python3 -m venv venv source venv/bin/activate -
Install Dependencies:
pip install -r requirements.txt
-
Configure Environment:
- Copy
.env.exampleto.env:cp .env.example .env
- Edit
.envand fill in your MySQL database credentials.
- Copy
-
Run the Application:
flask run # OR python run.py -
Seed Data (Optional): To populate the database with initial data (Admin user, Rooms, Customers):
python seed.py
- Public Booking: Access
http://localhost:5000/to view rooms and make reservations. - Admin Panel: Access
http://localhost:5000/admin/login.- Default Admin Credentials (if seeded):
- Username:
admin - Password:
admin123
- Username:
- Default Admin Credentials (if seeded):
app/: Application source code.models.py: Database models.routes/: API and Frontend routes.
static/: CSS and JavaScript files.templates/: HTML templates.run.py: Entry point.