- M Venkateshwar Reddy (InternID- INTERN202000188)
- Mukund N Acharya (InternID- INTERN202000136)
- Manjunath B (InternID - INTERN202000241)
- Rahul KP (InternID - INTERN202000142)
- Admin Profile: The users with admin profiles are the staff of the organization like Owners, Chefs, Laundry Managers and Room Service Managers.
- Guest Profile(Restaurant Profile): The users with Guest profiles are Restaurant users who can create a new account and can order food using the food order page.
- UserProfile(Hotel Guest Profile): The users with User Profile are Users who stay at one of the hotel rooms and can avail the services through the application like:
- Ordering Food.
- Ordering RoomServices.
- Ordering Laundry Services.
- Extending stay time.
- Changing Password.
- Go to https://github.com/KavachNetworks/Hotel-and-Restaurant-Management_BE for the Source code of the project.
- Go to “Code” Button Click on the “Download Zip” Button.
- Unzip the downloaded ZIP file and put it in a folder.
- Go to command prompt and create a Virtual Environment by typing:
- sudo apt install python-pip
- sudo pip install virtualenvwrapper
- mkvirtualenv django
- Work on the current environment created by typing “workon django” in the command prompt.
- Install all the dependencies for the project by typing
- pip install -r requirements.txt
- Install PostgreSQL server (https://www.postgresql.org/download/) and PGAdmin(https://www.pgadmin.org/download/).
- During installation, set password as ‘password’ ONLY. (Putting some other password will lead to a change in django settings folder to run.)
- After Installation is complete, open PGadmin and create a database with the name ‘Hotel_And_Restaurant’ ONLY.
- Go to the unzipped folder location and go to the folder named “Hotel_And_Restaurant” and open a command prompt in this location.
- If you want to use the already prepared database by us, which has been set up by dummy values, you can import the database with the filename “hotelfinal.sql” into the “Hotel_And_Restaurant” database created earlier in pgadmin and then you can directly login using the credentials provided in the readme file of the project. For that, run the server and go to 127.0.0.1:8000 and login. Else to prepare the whole database, follow the next steps.
- Type django manage.py createsuperuser (This will be the login credential for the superuser for access django-admin) and enter username, email and password of your choice.
- Type “python manage.py makemigrations”
- Type “python manage.py migrate”
- Type “python manage.py runserver”
- After typing you will see a link like “127.0.0.1:8000”. Put this in a web browser.
- You will see the homepage. Now in the address bar add “/admin” after the link like “127.0.0.1:8000/admin”.
- Login using your super user credentials.
- You will see a Users tab, click and create a User.
- After this, go to Admin Profile Tab and link this user as a “owner” (all lower case)
- After the creation of the owner, create rooms by clicking Rooms in the admin main page. The room types are:
- Deluxe Double Bed
- Classic Single Bed
- Classic Double Bed
- Set a price for each room type in the room creation page.
- Create Restaurant tables by clicking the tables on the django-admin page.
- Now logout of the admin portal as the superuser by clicking logout in the top right corner of the Django-admin site.
- Now, run the django server using "python manage.py runserver" if not run previously.
- In the address bar, type the url “127.0.0.1:8000”. The homepage should appear. Login as owner using owner credentials and create admins like Receptionists, chef etc. so the software can start to function.
- The user creations further can be done using the website.