This is a Hotel Management System built using Django and Django Rest Framework. The system includes features such as OTP authentication and Celery for task management.
- Clone the repository to your local machine.
git clone ttps://github.com/Mohammadihpython/HotelPro.git
- Create a virtual environment and activate it.
- Install the dependencies using
pip install -r requirements.txt
- Run the migrations using
python manage.py migrate
- Create a superuser using
python manage.py createsuperuser
- Start the development server using
python manage.py celery runserver
The system uses OTP authentication for user login. When a user attempts to login, an OTP is sent to their registered mobile number. The user must enter the OTP to complete the login process.
The system includes user management features such as creating new users, updating user details, and deleting users.
The system allows users to view available rooms, book rooms, and cancel room bookings.
The system uses Celery for task management. Tasks such as sending OTPs and sending booking confirmation emails are handled asynchronously.
The following API endpoints are available:
- /account/register/ - GET, POST
- /account/login/ - POST
- /rooms/suggestion/ - POST
- /api/bookings/ - GET, POST
- /api/bookings/int:pk/ - GET, PUT, DELETE