Electronics Shop
Electronics Shop
ABSTRACT
The purpose of Online Food Ordering System is to automate the existing manual system by the
help of computerized equipment’s and full-fledged compute software, fulfilling their requirements, so that
their valuable data/information can be stored for a longer period with easy accessing and manipulation of the
same. The required software and hardware are easily available and easy to work. Online Food Ordering
System, as described above, can lead to error free, secure, reliable and fast management system. It
can assist the user to concentrate on their other activities rather to concentrate on the record keeping. Thus it
will help organization in better utilization of resources. The organization can maintain computerized
records without redundant entries. That means that one need not be distracted by information that is not
relevant, while being able to reach the information. The aim is to automate its existing manual system
by the help of computerized equipment’s and full-fledged computer software, fulfilling their
requirements, so that their valuable data/information can be stored for a longer period with
easy accessing and manipulation of the same. Basically the project describes how to manage for
good performance and better services for the clients.
CHAPTER 1
INTRODUCTION
The purpose of this project is to automate the existing manual system by the help of
computerized equipment’s and full-fledged compute software, fulfilling their requirements, so that
their valuable data/information can be stored for a longer period with easy accessing and
manipulation of the same.
The "Food Delivery Management System" has been developed to override the problems
prevailing in the practicing manual system. This software is supported to eliminate and, in some
cases, reduce the hardships faced by this existing system. Moreover, this system is designed
for the particular need of the company to carry out operations in a smooth and
effective manner.
The application is reduced as much as possible to avoid errors while entering the data. It also
provides error message while entering invalid data. No formal knowledge is needed
for the user to use this system. Thus, by this all it proves it is user-friendly. Online Food
Ordering System, as described above, can lead to error free, secure, reliable and fast
management system. It can assist the user to concentrate on their other activities
rather to concentrate on the record keeping. Thus, it will help organization in better
utilization of resources.
1.3 OBJECTIVES:
The proposed system's objective is to overcome all the limitations and drawback of the existing system. The
online food ordering system is user-friendly web application. The main objectives of the system is its
simplicity of design and easy of implementation that shows and helps to collect most of the information about
Food Services. The system requires very low system resources and the system will work in almost all
configurations. The data can be retrieved easily. The interface is very user-friendly. The data are well
protected for personal use and the data processing is very fast. The main objectives of the proposed system
can be enumerated as follows:
• To monitor the activities of the user like when the user logged in and logged out .
• Editing, adding and updating of Records is improved which results in proper resource management of
Food Item data.
• Manage the information of Order
DESIGN
2.1 ENTITIES:
1.User
2.Orders
3.Items
4.Wallet
5.Order_Details
6.Wallet_Detail
1.User
Attributes of User entity are Id, Name, Username, Password, Email, Address, Contact,
Verified, Delete as shown in table 2.1.1
Attributes of Orders entity are Id, Customer_id, Address, Description, Payment_Type, Date,
Total, Status, Deleted as shown in table 2.1.2
3.Items
Attributes of Items entity are Id, Name, Price, Deleted as shown in table 2.1.3
4.Wallet
5.Order_Details
Attributes of Order_Details entity are Id, Order_ID, Item_ID, Quantity, Price as shown in table 2.1.5
Entity Relationship Model (ER Modelling) is a graphical approach to database design. It is a high-
level data model that defines data elements and their relationship for a specified software system.
An ER model is used to represent real-world objects.
2.4 NORMALIZATION:
Normalization is a process of organizing the data in database to avoid data redundancy, insertion anomaly,
update anomaly & deletion anomaly.
For a table to be in the First Normal Form, it should follow the following 4 rules:
Normalization:
• The user has the required atomic valued attributes i.e; id, name, email, address, contact which are
unique.
• Each user is unique since he/she has a unique id.
• Hence this ensures that the system is following the 1 st Normal Form.
All the tables which are part of this project are in 2NF as they have atmost one primary key, so no partial
dependency.
Normalization:
All the used tables satisfy both these conditions and hence are in 3NF.
Normalization:
• It does not have any transitive relation in the database so, automatically the system follows 3 rd normal
form.
CHAPTER 3
METHODOLOGY
The program works on Desktop PC and is executed using a Python flask which interacts with a
MySQL database running on localhost.
session_start();
$servername = "localhost";
$server_user = "root";
$server_pass = "";
$dbname = "food";
$name = $_SESSION['name'];
$role = $_SESSION['role'];
CHAPTER 4
IMPLEMENTATION
Government organizations will keep a watch on the pairing of donors and Patients and can approve
a transplantation operation if all the rules are satisfied.
HTML
Hypertext Markup Language is the standard markup language for documents designed to be
displayed in a web browser. It can be assisted by technologies such as Cascading Style Sheets and
scripting languages such as JavaScript.
CSS
Cascading Style Sheets is a style sheet language used for describing the presentation of a
document written in a markup language like HTML. CSS is a cornerstone technology of the
World Wide Web, alongside HTML and JavaScript. Functional Modules.
JavaScript
JavaScript, often abbreviated as JS, is a high-level, interpreted scripting language that conforms to the
ECMAScript specification. JavaScript has curly-bracket syntax, dynamic typing, prototype-based
object-orientation, and first-class functions.
Materialize
Materialize is a UI component library which is created with CSS, Javascript and HTML. It is created
and designed by Google. Materialize CSS is also know as Material Design. It is a design language
which combines the classic principles of successful design along with innovation and technology.
1. <?php
session_start();
if(isset($_SESSION['admin_sid']) || isset($_SESSION['customer_sid']))
header("location:index.php");
if($_SESSION['customer_sid']==session_id())
This checks whether current session id matches the session id of the currently logged in customer.
3. <?php
?>
This is used select orders which have different status(Delivered, Yet to be Delivered). 4. <?php
} else
if($_SESSION['admin_sid']==session_id())
} else{
header("location:login.php");
?>
This is used to check if the login is being done by the Admin or not.
?>
This subtracts the total amount of the order from the wallet balance and returns the updated balance.
6. <?php
include '../includes/connect.php';
$status = $_POST['status'];
$con->query($sql); header("location:
../all-orders.php"); ?>
The SQL CREATE TABLE statement is used to create a new table. Syntax
The basic syntax of the CREATE TABLE statement is as follows − CREATE
TABLE
column3 datatype,
.....
columnN datatype,
);
CREATE TABLE is the keyword telling the database system what you want to do. In this case, you
want to create a new table. The unique name or identifier for the table follows the CREATE TABLE
statement.
Then in brackets comes the list defining each column in the table and what sort of data type it is.
The SQL CREATE DATABASE statement is used to create a new SQL database.
Syntax
USE food;
DEFAULT '0',
DEFAULT '0'
--------------------------------------------
--------------------------------------------
--------------------------------------------
--------------------------------------------
--------------------------------------------
--------------------------------------------
--------------------------------------------
--------------------------------------------
--------------------------------------------
--------------------------------------------
--------------------------------------------
--------------------------------------------
--------------------------------------------
(`id`);
--------------------------------------------
(`id`),
(`id`);
--------------------------------------------
--------------------------------------------
(`id`),
(`id`);
--------------------------------------------
(`id`);
--------------------------------------------
(`id`);
Syntax
There are two basic syntaxes of the INSERT INTO statement which are shown below.
Here, column1, column2, column3,...columnN are the names of the columns in the table into which you
want to insert the data.
You may not need to specify the column(s) name in the SQL query if you are adding values for all
the columns of the table. But make sure the order of the values is in the same order as the columns
in the table.
(1, 1);
CHAPTER 5
TESTING
5.1 TRIGGERS:
A trigger is a stored procedure in database which automatically invokes whenever a special event in
the database occurs. For example, a trigger can be invoked when a row is inserted into a specified
table or when certain table columns are being updated.
(new.id, new.id);
5.2 QUERIES:
A query is a question, often expressed in a formal way. A database query cab be an normal or an action query.
CRUD operations are performed in the backend.
This query is used to insert user into the table when a new user registers.
3. "UPDATE orders SET status='$status' WHERE id=$id;" This query updates the order status.
Software Testing is a method to check whether the actual software product matches expected
requirements and to ensure that software product is Defect free. It involves execution of
software/system components using manual or automated tools to evaluate one or more properties of
interest. The purpose of software testing is to identify errors, gaps or missing requirements in contrast
to actual requirements.
• A good test case design is one that has a probability of finding an as yet undiscovered error.
• Testing cannot show the absence of defects, it can only show that software errors are present.
• Testing should begin on a small scale and progress towards testing in large.
The process of evaluating software during the development process or at the end of the development
process to determine whether it satisfies specified business requirements. Validation Testing ensures
that the product actually meets the client's needs. It can also be defined as to demonstrate that the
product fulfills its intended use when deployed on appropriate environment.
In this test the entire system is divided into smaller entities and each entity is known as a unit and
each unit is tests one at a time. The test ensures the working of each module as per the requirement
in functionality point of view rather actual module visible to the user.
In this test each unit is looped together to form a long and continuous chain of modules till it does
not cover the entire system. The test checks the behavior of the interface. This test is generally
performed after unit test.
CHAPTER 7
CONCLUSION
The application is based on user’s requirement and is user centred. All issues related to all user which are
included in this system are developed by this system. If people know how to operate android smart phone
wide variety of people can use the application. This system will solve the various issues related to Mess/Tiffin
service. To help and solve important problems of people implementation of Online Food Ordering system is
done.
It can be concluded that, based on the application: Orders are made easily by this system; Information needed
in making order to customer is provided by the system. Receiving orders and modifying its data is possible
through the application and it also helps admin in controlling all the Food system.
REFERENCES
• Database System Models, Languages, Ramez Elmasri and Sham Kant B. Navathe, 7th Edition, 2017
Pearson.
• Fundamentals of Web Development, Randy Connolly and Ricardo Hoar ,First Impression, 2016
Pearson.
• www.stackoverflow.com
• www.guru99.com
• www.w3schools.com
• www.geeksforgeeks.com
• www.github.com