A Room booking application where a user can book a room in advance.
A Room Slot Booking Application, built using Python, Django, and Django REST Framework.
View more screenshots
- Download and Extract the zip file of the project and cd into
cd room-slot-booking-master
OR
git clone https://github.com/roopeshsn/room-slot-booking.git
cd room-slot-booking
- Install virtualenv
pip install virtualenv
If you already installed virtualenv then skip this step. - Create Virtual Environment
virtualenv venv
- Activate Virtual Environment
venv\scripts\activate
- Install Dependencies
pip install -r requirements.txt
- Run Server
python manage.py runserver
- Run Tests
python manage.py test
Note: I am using Windows machine
- PEP-8 standards followed.
- Built with Django and Django REST Framework.
- Test cases written.
- Django Template System used for rendering HTML pages (Frontend).
- API endpoints created for managing users, rooms, timeslots, and bookings.
- A customer can book rooms on their preferred date and also they have option to cancel the booking.
- A customer can see their respective bookings.
- A Room manager can add, update or delete rooms and respected timeslots.
- A Room manager can view the bookings of the user.
- An Admin can assign the position "Staff", which means Room Manager to anyone who is signed up as a user.
- A demo database is created with users and rooms with respected timeslots
- Admin (superuser): email: "admin@admin.com", password: "admin123"
- Room Manager (staff): email: "manager@manager.com", password: "manager123"
- Customer1: email: "user1@user.com", password: "user1abc"
- Customer2: email: "user2@user.com", password: "user2abc"