





















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






















Presently students in hostels of NITK have to call the various night canteens that are present and place their order. But this method poses a lot of problems, some of which are: ā The students have to call the night canteen which costs money. ā Lack of proper menu for the students to order from. ā Students are kept in the dark about the status of the order. ā Problems due to lots of students calling the night canteen at the same time. ā Loss of orders due to poor management in the night canteen. ā If the student goes to the Night Canteen to eat he will have to wait for quite a bit of time for the food to be prepared. We hope to remove all these problems by creating a online platform where the students can place their orders. This document defines all the requirements of the NC management system. The idea of the project is to build a web application that would make the process of ordering food from night canteen seamless. This application would have everything from the ratings and reviews of food items available to the status of your orders. The students will have to login using their credentials and then they have to choose the food items they want to order from the displayed menu and the order will be created. The user will then have a choice whether to have the food delivered to their hostel blocks or go to Night Canteen and eat.
Student Features
ā This project is for all the Night Canteens in the campus. ā The online platform will provide the list of different Night Canteens along with the along with the various available food items. ā The customer has to login to open the web app. If the customer does not have an account he/she can register by inputting the required details. ā A customer can select any item from any canteen and add them to his/her cart and then place the order. ā The customer can view his/her past orders in the order history tab. ā The customer will also be able to see the status of his/her orders. ā The customer has an option to rate the food items. ā The customer will have a choice of either having the order delivered to their respective hostel blocks or go to the Night Canteen and have their food.
Canteen Manager Features
ā The Canteen Manager can login to the Night Canteen he/she manages. ā He/She can view the list of food items along with its details provided by the Night Canteen. ā He/She will be able to add/delete new food items. ā He/She will also have an option to modify the details of the existing food items. ā The Manager will also be able to view all the orders that are placed by the customers. ā The Manager can either accept/reject the orders placed and assign delivery boys to each of the orders. ā The manager can also add/delete delivery boysā information of the Night Canteen.
ā The user should also be able to rate and write reviews for the items he/she has ordered. ā Once the order has been placed the user has to notified about the status of the food(ready or not). ā If the user has chosen the option of the food being delivered to the hostel the user should be notified of the name of the delivery person. ā If the user had chosen the option of having the food at the night canteen itself, he should be notified at least 10 minutes before the food is ready. ā The user should also be able to able to view his/her order history.
NIght Canteen Managerās Requirements
ā Each manager would require his own credentials in order to login and place an order. ā The managers of the night canteen have to contact the admin of the application to be given an id for future use in the system. ā The Canteen Managers should be able to add food items (Name, Price, Category, Image) ā They should also be able to edit the existing food items and also delete the food items. ā The Manager should be able to view the placed orders of all the customers along with all the details (Order ID, Name, Food Items orders and its quantity, total bill amount, address of the customer). ā The Canteen Manager should be able accept/reject the orders placed by the customers. ā The Manager should also be able to add new delivery boy information or delete the existing delivery boys.
ā Managers should also be able to assign delivery boys to deliver the prepared orders. ā The Canteen Manager should also be able to update the status of the orders (Waiting Confirmation to being prepared, and being prepared to prepared ).
Database Requirements
The online platform uses a database to store the details of the users, the menu of the Night Canteens, the details of the orders placed, details of the canteen manager and many more details. The database consists of several tables. The list of tables are:
g. Reviews: A composite attribute consisting of the User_ID, the comment and the rating given by the user. h. Preparation Time: The time that is required to prepare the food item in minutes. i. Image of the food item: It stored the path of the image of the food item on the server side.
Website Requirements
Student Side:
ā Manage the delivery staff: This tab should allow the manager to add/remove delivery boys.
ER Diagram:
The Entity-Relationship Diagram of the NIght Canteen Management System is given below:
Legend ā : Participation of 1 (numbers used in ratios 1:1, 1:N , N:1 etc) ā : Participation of N ā : Total Participation ā : Partial Participation
Relation Schema:
Normalisation Steps:
1. The first Normal Form obtained by applying the steps to convert the ER Diagram to Relational Schema:
Night Canteen
NcID Name Location Start_time End_time CmID(FK)
Phone Number
NcID(FK) Phone_number Canteen Manager CmID Name Username Password
Food Item
FoodID Name Price Availability ImageURL Ratings Num_ratings PreparationTime CmID(FK)
Orders
OrderID ODate Total UserID Status CmID(FK)
Canteen Manager CmID Name Username Password
Food Item
FoodID Name Price Availability ImageURL Ratings Num_ratings PreparationTime CmID(FK)
Orders
OrderID ODate Total UserID Status CmID(FK)
Items
OrderID(FK) FoodID Quantity
Student
SID FirstName LastName PhoneNumber EmailID Password RoomNo Floor BlockName
Student-Order
SID(FK) OrderID(FK)
Delivery Boy
RegNo Name
Delivery Boy-Order details
CmID(FK) RegNo(FK) SID(FK)
User Cart
SID(FK) FoodID(FK) Price Quantity
The schema of the Night Canteen Management System is given below:
We had to learn a lot of new softwares to complete the project which include the Flask package of python which was used in the backed for routing the web pages, HTML and CSS for designing the forms and the webpages.
This is the homepage of the web application. The users have to click on āStudentā or āCanteen Managerā depending upon who they are.
For the four night canteens that are present logins have been created for them and will be given to the respective canteen managers who can use it to login here. The credentials given here are for 3rd Block night canteen.
4 ) Admin dashboard : Add item
The admin can add items as shown below.
Admin View orders
Admin View order details