A comprehensive hotel management system built with Django and Tailwind CSS.
Before you begin, ensure you have the following installed on your system:
- Python (3.8 or higher)
- pip (Python package manager)
- Git (for cloning the repository)
- Node.js (14.0 or higher)
- npm (Node.js package manager)
git clone <repository-url>
cd Hotel_Managementpython -m venv .venv
.venv\Scripts\activatepython3 -m venv .venv
source .venv/bin/activatepip install -r requirements.txtnpm installThe project uses SQLite by default. Run the following commands to set up the database:
python manage.py migrateIf you need to apply specific migrations as mentioned in the migration_instructions.md, follow those steps.
npx tailwindcss -i ./static/src/input.css -o ./static/css/output.css --watchpython manage.py createsuperuserFollow the prompts to create an admin user.
python manage.py runserverThe development server will start at http://127.0.0.1:8000/.
hotel_management/- Main Django project directorymain/- Django app for core functionalityratings/- Django app for ratings systemstatic/- Static files (CSS, JavaScript, images)media/- Media files (user uploads)theme/- Theme-related filesstaticfiles/- Collected static files
For deploying to a production environment, follow these additional steps:
- Set the
DEBUGsetting toFalsein your settings file - Configure your web server (Nginx, Apache, etc.)
- Set up a production-ready database (PostgreSQL recommended)
- Set up proper environment variables for sensitive information
If you encounter any issues during setup:
- Ensure all prerequisites are correctly installed
- Check that your virtual environment is activated
- Verify that all dependencies are installed
- Check the Django error logs