Skip to content

KavachInterns2020/Hotel-and-Restaurant-Management_BE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

Hotel And Restaurant Management

Team 2020T0011

Team Members:

  1. M Venkateshwar Reddy (InternID- INTERN202000188)
  2. Mukund N Acharya (InternID- INTERN202000136)
  3. Manjunath B (InternID - INTERN202000241)
  4. Rahul KP (InternID - INTERN202000142)

About The Project:

Types of Users of the Application:

  1. Admin Profile: The users with admin profiles are the staff of the organization like Owners, Chefs, Laundry Managers and Room Service Managers.
  2. 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.
  3. 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:
    1. Ordering Food.
    2. Ordering RoomServices.
    3. Ordering Laundry Services.
    4. Extending stay time.
    5. Changing Password.

Steps for Setup:

  1. Go to https://github.com/KavachNetworks/Hotel-and-Restaurant-Management_BE for the Source code of the project.
  2. Go to “Code” Button Click on the “Download Zip” Button.
  3. Unzip the downloaded ZIP file and put it in a folder.
  4. Go to command prompt and create a Virtual Environment by typing:
    1. sudo apt install python-pip
    2. sudo pip install virtualenvwrapper
    3. mkvirtualenv django
  5. Work on the current environment created by typing “workon django” in the command prompt.
  6. Install all the dependencies for the project by typing
    1. pip install -r requirements.txt
  7. Install PostgreSQL server (https://www.postgresql.org/download/) and PGAdmin(https://www.pgadmin.org/download/).
  8. During installation, set password as ‘password’ ONLY. (Putting some other password will lead to a change in django settings folder to run.)
  9. After Installation is complete, open PGadmin and create a database with the name ‘Hotel_And_Restaurant’ ONLY.
  10. Go to the unzipped folder location and go to the folder named “Hotel_And_Restaurant” and open a command prompt in this location.
  11. 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.
  12. 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.
  13. Type “python manage.py makemigrations”
  14. Type “python manage.py migrate”
  15. Type “python manage.py runserver”
  16. After typing you will see a link like “127.0.0.1:8000”. Put this in a web browser.
  17. You will see the homepage. Now in the address bar add “/admin” after the link like “127.0.0.1:8000/admin”.
  18. Login using your super user credentials.
  19. You will see a Users tab, click and create a User.
  20. After this, go to Admin Profile Tab and link this user as a “owner” (all lower case)
  21. After the creation of the owner, create rooms by clicking Rooms in the admin main page. The room types are:
    1. Deluxe Double Bed
    2. Classic Single Bed
    3. Classic Double Bed
    NOTE- Please put the same name as these including the Cases of the words for testing of the current prototype, These can be changed according to the hotel’s need by the backend team.
  22. Set a price for each room type in the room creation page.
  23. Create Restaurant tables by clicking the tables on the django-admin page.
  24. Now logout of the admin portal as the superuser by clicking logout in the top right corner of the Django-admin site.
  25. Now, run the django server using "python manage.py runserver" if not run previously.
  26. 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.
  27. The user creations further can be done using the website.

About

Backend files for Hotel and Restaurant Management System by team 2020T0011

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •