You are on page 1of 25

Visvesvaraya Technological University

Belagavi, Karnataka – 590 018

A
Project Report
On
Online Restaurant Management System

Submitted in partial fulfilment of the requirements for the WEB Technology


with Mini Project (18CS63) course of 6th Semester

Bachelor of Engineering
in
Computer Science and Engineering
Submitted by
Meghana K Pragathi M R
1JS18CS080 1JS18CS107

Under the Guidance of


Mrs.Ranjitha S. R., B.E., M.E.
Assistant Prof, Dept of CSE,
JSS Academy of Technical Education, Bengaluru

JSS Academy of Technical Education, Bengaluru – 560060


Department of Computer Science and Engineering
2020 – 2021
1
JSS MAHAVIDYAPEETHA, MYSURU
JSS ACADEMY OF TECHNICAL EDUCATION
JSS Campus, Dr. Vishnuvardhan Road, Bengaluru-560060

Department of Computer Science & Engineering

CERTIFICATE
This is to certify that the project work entitled “Online Restaurant
Management System” is a Bonafide work carried out by Meghana K
(1JS18CS080), Pragathi M R (1JS18CS107) in partial fulfilment for the
WEB Technology with Mini Project (18CS63) of 6 th Semester Bachelor of
Engineering in Computer Science and Engineering in Visvesvaraya
Technological University Belagavi during the year 2020-2021. It is certified
that all corrections and suggestions indicated for Internal Assessment have
been incorporated in the report deposited in the department library. The
project report has been approved as it satisfies the academic requirement in
respect of the project work prescribed for the said degree.

Mrs. Ranjitha S. R.,B.E., M.E. Dr. Naveen N. C., B.E., M.E., Ph.D,
Assistant Prof, Dept of CSE, Professor and Head, Dept of CSE,
JSSATE, Bengaluru JSSATE, Bengaluru

Name of the Examiners: Signature with Date

1)

2)
ABSTRACT

Online Restaurant Management System is the process of ordering food from a website .The
product can be either ready-to-eat food. The aim of developing Online Restaurant Management
project is to replace the traditional way of taking orders with computerized system. Another
important reason for developing this project is to prepare order summary reports quickly and in
correct format at any point of time when required.

Online Restaurant Management has a very lot of scope. This PHP project can be used by any
restaurants or fast foods for customers for keeping their order records. This project is easy, fast and
accurate. It requires less disk space. Online Restaurant Management uses MYSQL Server as
backend so there is not any chance of data loss or data security. A customer can choose to have the
food delivered or for pick-up. The process consists of a customer choosing the restaurant of their
choice, scanning the menu items, choosing an item, and finally choosing for pick-up or delivery.
Payment is then administered by paying with a credit card or debit card through the app or website
or in cash at the restaurant when going to pickup. The website and app inform the customer of the
food quality, duration of food preparation, and when the food is ready for pick-up or the amount of
time it will take for delivery
Helps customer to order their food at any time. The customers will be able to order their
favorite dishes at any point of time, and as we have pointed out earlier, that time is a minimal
option, and restaurants must have a specified system through which they can serve a huge number
of customers while making their work smoother. Ordering.co is one of the best platforms which
provides all of these platforms along with numerous innovative features which has turned countless
small and large businesses into an inspiring leader in the online marketplace.
Acknowledgements
We express our humble pranams to His Holiness Jagadguru Sri Sri Sri Shivaratri
Deshikendra Mahaswamiji for showering his blessings on us to receive good education and
have a successful career.

The completion of any project involves the efforts of many people. We have been lucky
enough to have received a lot of support from all ends during the course of this project. So,
we take this opportunity to express our gratitude to all whose guidance and encouragement
helped us emerge successful.

We are thankful for the resourceful guidance, timely assistance and graceful gesture of our
guide Mrs.Ranjitha S. R., Assistant professor, Department of Computer Science and
Engineering, who helped us in every aspect of our project work.

We are also forever grateful to Dr.Naveen N. C., Head of the Department, Computer Science
and Engineering, for his unending support, guidance and encouragements in all our ventures.

We express our sincere thanks to our beloved principal, Dr.Mrityunjaya V. Latte for having
supported us in all our academic endeavors.

Last but not the least; we would be immensely pleased to express our heartfelt thanks to all
the teaching and non-teaching staff of the department of CSE and our friends for their timely
help, support and guidance.

Meghana K
Pragathi M R
Table of Contents

Chapter 0
Abstract..............................................................................................................I

Acknowledgement.............................................................................................ii

Contents............................................................................................................iii

List of figures...................................................................................................iv

Chapter 1 Preamble

1.1 Introduction

1.1.1 HTML

1.1.2 MYSQL

1.1.3 JavaScript

1.1.4 CSS

1.1.5 PHP

1.2 Normalization

1.3 Objectives

1.4 Organisation Report

1.5 Summary

Chapter 2 Requirements Specifications

2.1 Software Requirements

2.2 Hardware Requirements

2.3 User Characteristics

Chapter 3 System Design and Implementation

3.1 Introduction

3.2 E-R Diagram


3.3 Schema Diagram

3.4 Data flow Diagram

3.5 Use case Diagram

3.6 Pseudo Code

3.6.1 Algorithm for Table Display

3.6.2 Algorithm for Insert

3.6.3 Algorithm for Update

3.6.4 Algorithm for Delete

Chapter 4 Results and Discussions

Chapter 5 Conclusion and future enhancements


References
List of Figures

Figure No Name of Figure Page No

3.1 ER-Diagram
3.2 Schema Diagram
3.3 Data flow Diagram
4.1 Home Page

4.2 Sign up Page

4.3 Login Page

4.4.1 Order Page

4.4.2 Add to Card Page

4.5 Order Details Page

4.6 Receipt Page

4.7 Admin Dashboard Page

4.7.1 User Log in Details Page

4.7.2 Restaurant Adding Page


4.7.3 Menu Adding page
Chapter 1

Preamble

1.1 Introduction
1.1.1 HTML

Hypertext Mark-up Language (HTML) is the standard mark-up


language for creating web pages and web applications. With Cascading
Style Sheets (CSS) and Java Scripts, it forms a triad of cornerstone
technologies for the World Wide Web.
Web browser receives HTML documents from a web server or
from local storage and renders the documents into multimedia web pages.
HTML describesthe structure of a web page semantically and originally
included cues for the appearance of the document.
HTML can embed programs written in a scripting language such as
JavaScript, which affects the behavior and content of web pages. Inclusion
of CSS defines the look and layout of content.

A brief about html is listed below:

∙ HTML stands for Hyper Text Mark-up Language


∙ HTML is the standard mark-up language for creating Web pages
∙ HTML describes the structure of a Web page
∙ HTML consists of a series of elements
∙ HTML elements tell the browser how to display the content
∙ HTML elements label pieces of content such as "this is a heading", "this is a
paragraph", "this is a link", etc.

1.1.2 MYSQL

 MySQL creates a database for storing and manipulating data, defining the relationship
of each table.
 Clients can make requests by typing specific SQL statements on MySQL.
 The server application will respond with the requested information and it will appear
on the clients’ side.
MySQL Workbench is a unified visual tool for database architects, developers, and DBAs.
MySQL Workbench provides data modeling, SQL development, and comprehensive administration
tools for server configuration, user administration, backup, and much more. MySQL Workbench is
available on Windows, Linux and Mac OS X.
1.1.3 JavaScript
JavaScript often abbreviated as JS, is a high-level, interpreted programming language. It is a
language which is also characterized as dynamic, weakly typed, prototype-based and multi-paradigm.
Alongside HTML and CSS, JavaScript is one of the three core technologies of the World WideWeb.
JavaScript enables interactive web pages and thus is an essential part of web applications. The vast
majority of websites use it, and all major web browsers have a dedicated JavaScript engine to execute
it.

1.1.4 CSS
Cascading Style Sheets (CSS) is a style sheet language used for describing the presentation of a
document written in a mark-up language like HTML.CSS is a cornerstone technology of the World
Wide Web, alongside HTML and JavaScript.
CSS is designed to enable the separation of presentation and content, including layout, colors, and
fonts. This separation can improve content accessibility, provide more flexibility and control in the
specification of presentation characteristics, enable multiple web pages to share formatting by
specifying the relevant CSS in a separate CSS file, and reduce complexity and repetition in the
structural content.
Separation of formatting and content also makes it feasible to present the same markup page in
different styles for different rendering methods, such as on-screen, in print, by voice (via speech-
based browser or screen reader), and
on Braille-based tactile devices. CSS also has rules for alternate formatting if the content is accessed
on a mobile device.
The name cascading comes from the specified priority scheme to determine which style rule applies
if more than one rule matches a element. This cascading priority scheme is predictable.

1.1.5 PHP

Hypertext Preprocessor (or simply PHP) is a server-side scripting language designed for
Web development, but also used as a general-purpose programming language. It was
originally created
by Rasmus Lerdorf in 1994,] the PHP reference implementation is now produced by The PHP
Group. PHP originally stood for Personal Home Page,] but it now stands for the recursive acronym
PHP: Hypertext Preprocessor.
PHP code may be embedded into HTML code, or it can be used in combination with various
web template systems, web content management systems, and web frameworks. PHP code is
usually processed by a PHP interpreter implemented as a module in the web server or as a
Common Gateway Interface (CGI) executable. The web server combines the results of the
interpreted and executed PHP code, which may be any type of data, including images, with the
generated web page. PHP code may also be executed with a command-line interface (CLI) and
can be used to implement standalone graphical applications.

11
.

1.2 Objectives
The main objective of this system is to manage the details of item category, food, delivery address,
order, and shopping cart. It manages all the information about item category, customer, shopping
cart, item category. The project is totally built at administrative end and thus only the administrator
is guaranteed the access. The purpose is to build and application program to reduce the managing
the item category, food customers. It tracks all he delivery address ordered.

1.1 Organization of report

Chapter 1 provides the information about the basics of JavaScript, MYSQL, html and css. In
Chapter 2, we discuss the software and hardware requirements to run the above applications.
Chapter 3 gives the idea of the project and its actual implementation. Chapter 4 discusses
about the results and discussions of the program. Chapter 5 concludes by giving the direction
for future enhancement.

1.2 Summary

The chapter discussed before is an overview about the html Application, JS Application and
MYSQL. The scope of study and objectives of the project are mentioned clearly. The
organization of the report is been pictured to increase the readability. Further, coming up
chapters depicts the use of various queries to implement various changes like insert, update,
delete and also triggers to perform various functions.
.
Chapter 2

Requirement Specifications

2.1 Software Requirements


• Operating System: Windows /7/8/10/Linux/Mac OS X
• Front End: HTML, CSS, JS.
• Back End: PHP.
• Database : MYSQL.

2.2 Hardware Requirements

• Processor: x86 compatible processor with 1.7 GHz Clock Speed


• RAM: 1024 MB or greater
• Hard Disk: 20 GB or grater
• Monitor: VGA/SVGA
• Keyboard: 104 keys standard
• Mouse: 2/3 button. Optical/Mechanical.

2.3 User Characteristics


Every user:

• Should be comfortable with basic working of the computer


• Must have basic knowledge of English
• Must carry a Email ID and password used for authentication
Chapter 3

System Design and Implementation

3.1 Introduction
Systems design is the process or art of defining the architecture, components,
modules, interfaces, and data for a system to satisfy specified requirements. One could
see it as the application of systems theory to product development.

3.2 ER Diagram
An entity–relationship model or the ER Diagram describes inter-related things of
interest in a specific domain of knowledge. An ER model is composed of entity types
and specifies relationships that can exist between instances of those entity types.

Figure 3.1 ER Diagram


In software engineering an ER model is commonly formed to represent things that a
business needs to remember in order to perform business processes. Consequently, the ER
model becomes an abstract data model that defines a data or information structure that can
be implemented in a database, typically a relational database.
Figure 3.1 ER Diagram represents the various relationships of the Restaurant Management
System.

3.3 Schema Diagram


UML sequence diagrams model the flow of logic within your system in a visual manner, enabling
you both to document and validate your logic, and are commonly used for both analysis and design
purposes. Sequence diagrams are the most popular UML artifacts for dynamic modeling, which
focuses on identifying the behavior within your system.

Figure 3.2 Sequence Diagram


.

The term "schema" refers to the organization of data as a blueprint of how the database is
constructed. These integrity constraints ensure compatibility between parts of the schema. All
constraints are expressible in the same language. A database can be considered a structure in
realization of the database language. The states of a created conceptual schema are
transformed into an explicit mapping, the database schema. This describes how real-world
entities are modeled in the database.

Figure 3.3: Data flow of Online Restaurant Management


3.4 Use case diagram
3.5 Pseudo Code
Pseudocode is an informal high-level description of the operating principle of a computer
program or other algorithm. It uses the structural conventions of a normal programming
language, but is intended for human reading rather than machine reading.

Algorithm for Admin login


Step 1: BEGIN
Step 2: Enter username and password
Step 3: Verify the credentials
Step 4: If Data match, then proceed to the Admin List page
Else show login failed
Step 5: End if Step 6: END

Algorithm for user Sign-up

Steps 1:BEGIN

Step 2: Enter the user details

Step 3: If details are correct then create User Account

Else show invalid date failed to create account.

Step 4: End if Step 5:END

Algorithm for Users login


Step 1: BEGIN
Step 2 : Enter username and password
Step 3: Verify the credentials from User Table
Step 4: If Credentials match, then proceed to the Customer List page
Else show login failed
Step 5: End if Step 6: END
Algorithm for Data fetching from database
Step1: BEGIN
Step 2: Establish connection with the database using the username and password of the
database.
Step 3: Define Associative Array to return all the values from the method passed.
Step 4: Define the select query to retrieve all the values from the DBMS
Step 5: Pass all the values into the associative array variable.
Step 6: Use php to extract the data from the associative array and display in appropriate
format.
Step 7: END

Algorithm for Insertion


Step 1: BEGIN
Step 2: Get all the necessary values required for insertion into variable defined in the method.
Step 3: Prepare the SQL statement using PDO. This is done to prevent SQL Injection attacks
into our system.
Step 4: Define the query for insertion as stated above.
Step 5: Execute the Query using the exucute() method provided by the PDO object.
Step 6: END

Algorithm for updation


Step 1: BEGIN
Step 2: Get all the necessary values required for updating the values into the variable defined
in the method.
Step 3: Prepare the SQL statement using PDO. This is done to prevent SQL Injection attacks
into our system.
Step 4: Define the Query for Updating as stated above.
Step 5: Execute the Query using the exucute() method provided by the PDO object.
Step 6: END
Algorithm for Deletion
Step 1: BEGIN
Step 2: Get the primary key of the item which is to be deleted into a variable defined in the
method.
Step 3: Define the Query for deleting as stated above.
Step 3: Prepare the SQL statement using PDO. This is done to prevent SQL Injection attacks
into our system.
Step 5: END

20
Chapter 4
Results and Discussions
This Project is compiled and executed, we have put in a few Screen Shots in here to show the
working of the application

Figure 4.1 shows the home page of the application

Figure 4.1: Home page

21
Figure 4.3: Sign Up page

22
Figure 4.2 shows the Login Page

Figure 4.2: Login page

Figure 4.4.1: Order pag


Figure 4.4.2: Add to Cart page

Figure 4.5: Order Details page


Figure 4.6: Receipt page

Figure 4.7 shows admin dashboard, where admin can view the list of Orders.

Figure 4.7: Admin Dashboard


Figure 4.7.1

Figure 4.7.1 User Log in Details Page

Figure 4.7.2

Figure 4.7.2 Restaurant Adding Page


Figure 4.7.3

Figure 4.7.3 Menu Adding page

Chapter 5

Conclusion

Information Technology plays a vital role not only in a particular field, it provides various
kinds of solutions and services to the various problems prevailing in many fields.
Restaurant exploits information technology at the maximum extent. It uses the information
technology in an efficient way for providing better Customer services.

Future Enhancements and Conclusion

Future Enhancements
Every Edition of a book comes with new topics and modifications if any errors are present.
In the similar way, in near future, our application will overcome the flaws if occurred, and
attains new features offered to employees for the Flexible and easy Food Order.
Following are the Enhancements to the application.
 Providing Good User Interface.
 Providing access permissions to the employees
 Try to Implement the GPS system to track Delivery details.

You might also like