Sei sulla pagina 1di 67

FoodSetGo

FoodSetGo

SUBMITTED TO: Syed Zishan Ali

SUBMITTED BY:
Mohammad Ghaffar (70035564)
Zain Khalid (70031823)
Babar Ali (70032173)

DEGREE
Bachelor of Science in Software Engineering
DEPARTMENT
Computer Science and IT

i
FoodSetGo

SIGNATURE PAGE

STATEMENT OF SUBMISSION

Submitted to The University of Lahore in partial fulfillment of the requirements for the award of
degree of Bachelors of Science in Software Engineering (Hons).

SUBMITTED BY GROUP MEMBERS:

Mohammad Ghaffar (70035564)

Zain Khalid (70031823)

Babar Ali (70032173)

SIR SYED ZISHAN ALI Project Advisor

(Lecturer UOL)
Department of CS & IT

ii
FoodSetGo

Department of Computer Science & Information Technology

THE UNIVERSITY OF LAHORE

DECLARATION

We hereby declare that this research work, neither as a whole nor as a part has already been
written by any person. It is further declare that we have done the research entirely upon the
basis of our personal efforts made under the guidance of my supervisor. No portion of the work
presented in this thesis has been submitted in support of any research for any other degree or
qualification of this or any other University of institute or institute of learning. This declaration is
submitted for the award of BS Software Engineer.

iii
FoodSetGo

ACKNOWLEDGEMENT

All the praises to the most Beneficent and Compassionate, ‫ ﷲ‬the Almighty, whose blessings and
strengths enabled us to complete this documentation for our BSSE. Millions of Darood-o-Salam
to Holy Prophet Hazrat Mohammad ‫ﷺ‬. The satisfaction that accompanies that the successful
completion of any task would be incomplete without the mention of people whose ceaseless
cooperation made it possible, whose constant guidance and encouragement crown all efforts
with success. We have made this report file on the topic FoodSetGo. We have tried our best to
illustrate all the relevant detail to the topic to be included in the report. First and foremost, we
would like to express our humblest gratitude for our eminent good natured and gracious
supervisor, Mr. Syed Zishan Ali. His vast knowledge in the subject, patience, enthusiasm,
expertise, instantaneous and timely guidance has always been a source of encouragement for us.
We have been extremely lucky for being able to work under supervision of encouraging and
considerate advisor. His invaluable help and suggestions throughout the work have contributed
to the success of this research work. We are really grateful to Mr. Syed Zishan Ali for the valuable
suggestions and advices. We thank him for providing us the support, confidence and most
importantly the track for the topic whenever we needed it. Working as a team we realized lot of
things like how to manage work as a team, experience to work in a team. We also want to thanks
to all the professors and all staff members and friends for all the help and co-ordination extended
in bringing out this project report successfully in time. Last but not least; we are very much
thankful to our parents who guided us in every step which we took.

iv
FoodSetGo

Table of Contents
CHAPTER – 1 ................................................................................................................................................. 1
1.1 Introduction .................................................................................................................................. 2
1.2 Purpose ......................................................................................................................................... 2
1.3 Objective ....................................................................................................................................... 3
1.4 Existing Solution ........................................................................................................................... 3
1.5 Proposed Solution ........................................................................................................................ 4
CHAPTER – 2 ................................................................................................................................................. 5
2.1 Introduction .................................................................................................................................. 6
2.1.1 Purpose ..................................................................................................................................... 6
2.1.2 Scope ......................................................................................................................................... 6
2.1.3 Overview ................................................................................................................................... 6
2.2 Overall Description ....................................................................................................................... 6
2.2.1 Product Perspective ................................................................................................................. 6
2.2.2 Product Functions..................................................................................................................... 7
2.2.3 User Characteristics .................................................................................................................. 8
2.2.4 Constraints ................................................................................................................................ 8
2.2.5 Assumptions and Dependencies .............................................................................................. 8
2.3 Specific Requirements .................................................................................................................. 8
2.3.1 Non-functional Requirements ................................................................................................. 8
2.3.2 Functional Requirements ....................................................................................................... 10
2.3.2.1 Administration........................................................................................................................ 11
2.3.2.2 Customer ................................................................................................................................ 11
2.3.2.3 Restaurant .............................................................................................................................. 15
Chapter – 3 ................................................................................................................................................. 19
3.1 Aggregated Use Case Diagram ................................................................................................... 20
3.2 Administration............................................................................................................................ 20
3.2.1 Login .................................................................................................................................... 20
3.2.2 Manage Issues .................................................................................................................... 21
3.3 Customer .................................................................................................................................... 23

v
FoodSetGo

3.3.1 Register ............................................................................................................................... 23


3.3.2 Login .................................................................................................................................... 24
3.3.3 Search Restaurant .............................................................................................................. 25
3.3.4 Select Meal ......................................................................................................................... 26
3.3.5 Add Meal to Cart ................................................................................................................ 27
3.3.6 Place Order ......................................................................................................................... 28
3.3.7 Track Order ......................................................................................................................... 29
3.3.8 Make Payment.................................................................................................................... 30
3.3.9 Apply for a Job .................................................................................................................... 31
3.4 Restaurant Manager .................................................................................................................. 32
3.4.1 Register ............................................................................................................................... 32
3.4.2 Login .................................................................................................................................... 33
3.4.3 Update Menu...................................................................................................................... 34
3.4.4 Check Order ........................................................................................................................ 35
3.4.5 Confirm Order ..................................................................................................................... 36
3.4.6 Post a Job ............................................................................................................................ 37
3.4.7 Delete a Job ........................................................................................................................ 38
3.5 Delivery Person .......................................................................................................................... 39
3.5.1 Deliver Meal ....................................................................................................................... 39
3.5.2 Receive Payment ................................................................................................................ 40
3.5.3 Deposit Payment ................................................................................................................ 41
4.1 Architecture Diagram ................................................................................................................. 44
4.2 ERD with Data Dictionary ........................................................................................................... 45
4.3 Data Flow Diagram ..................................................................................................................... 48
4.4 Class Diagram ............................................................................................................................. 50
4.5 Activity Diagram ......................................................................................................................... 51
4.6 Sequence Diagram...................................................................................................................... 53
4.7 Collaboration Diagram ............................................................................................................... 55
4.8 State Transition Diagram ........................................................................................................... 56
4.9 Component Diagram .................................................................................................................. 58
4.1 Deployment Diagram ................................................................................................................. 58

vi
FoodSetGo

List of Tables
Table 1 Manage Customers ........................................................................................................................ 11
Table 2 Manage Restaurant ........................................................................................................................ 11
Table 3 Customer Register .......................................................................................................................... 12
Table 4 Customer Login .............................................................................................................................. 12
Table 5 View Menu ..................................................................................................................................... 13
Table 6 Add Meal to Cart ............................................................................................................................ 13
Table 7 Total Bill of Customer ..................................................................................................................... 14
Table 8 Delete/Cancel Order ...................................................................................................................... 14
Table 9 Track Order..................................................................................................................................... 14
Table 10 Apply for Job................................................................................................................................. 15
Table 11 Restaurant Registration................................................................................................................ 15
Table 12 Restaurant Login .......................................................................................................................... 16
Table 13 View Order ................................................................................................................................... 16
Table 14 Cancel Order................................................................................................................................. 16
Table 15 Update Menu ............................................................................................................................... 17
Table 16 Post a Job...................................................................................................................................... 17
Table 17 Delete Job ..................................................................................................................................... 17
Table 18 Customer Details .......................................................................................................................... 18
Table 19 Admin Login.................................................................................................................................. 21
Table 20 Manage Issues .............................................................................................................................. 22
Table 21 Customer Registration.................................................................................................................. 23
Table 22 Customer Login ............................................................................................................................ 24
Table 23 Search Restaurant ........................................................................................................................ 25
Table 24 Select Meal ................................................................................................................................... 26
Table 25 Add Meal to Cart .......................................................................................................................... 27
Table 26 Place Order ................................................................................................................................... 29
Table 27 Track Order................................................................................................................................... 30
Table 28 Make Payment ............................................................................................................................. 31
Table 29 Apply for Job................................................................................................................................. 32
Table 30 Restaurant Registration................................................................................................................ 33
Table 31 Restaurant Login .......................................................................................................................... 34
Table 32 Update Menu ............................................................................................................................... 35
Table 33 Check Order.................................................................................................................................. 36
Table 34 Confirm Order .............................................................................................................................. 37
Table 35 Post a Job...................................................................................................................................... 38
Table 36 Delete a Job .................................................................................................................................. 39
Table 37 Deliver Meal ................................................................................................................................. 40
Table 38 Receive Payment .......................................................................................................................... 41

vii
FoodSetGo

Table 39 Deposit Payment .......................................................................................................................... 42


Table 40 Admin Data Dictionary ................................................................................................................. 45
Table 41 Customer Data Dictionary ............................................................................................................ 46
Table 42 Delivered Orders Data Dictionary ................................................................................................ 46
Table 43 Jobs Data Dictionary ..................................................................................................................... 46
Table 44 Job Applicants Data Dictionary .................................................................................................... 47
Table 45 Restaurant Data Dictionary .......................................................................................................... 47
Table 46 Main Admin Data Dictionary ........................................................................................................ 47
Table 47 Menu Data Dictionary .................................................................................................................. 47
Table 48 Orders Data Dictionary ................................................................................................................. 47
Table 49 Users Data Dictionary ................................................................................................................... 48

List of Figures
Figure 1 Aggregated Use Case .................................................................................................................... 20
Figure 2 Admin Login .................................................................................................................................. 20
Figure 3 Manage Issues ............................................................................................................................... 21
Figure 4 Customer Registration .................................................................................................................. 23
Figure 5 Customer Login ............................................................................................................................. 24
Figure 6 Search Restaurant ......................................................................................................................... 25
Figure 7 Select Meal .................................................................................................................................... 26
Figure 8 Add Meal to Cart ........................................................................................................................... 27
Figure 9 Place Order.................................................................................................................................... 28
Figure 10 Track Order ................................................................................................................................. 29
Figure 11 Make Payment ............................................................................................................................ 30
Figure 12 Apply for Job ............................................................................................................................... 31
Figure 13 Restaurant Registration .............................................................................................................. 32
Figure 14 Restaurant Login ......................................................................................................................... 33
Figure 15 Update Menu .............................................................................................................................. 34
Figure 16 Check Order ................................................................................................................................ 35
Figure 17 Confirm Order ............................................................................................................................. 36
Figure 18 Post a Job .................................................................................................................................... 37
Figure 19 Delete a Job ................................................................................................................................. 38
Figure 20 Deliver Meal ................................................................................................................................ 39
Figure 21 Receive Payment ......................................................................................................................... 40
Figure 22 Deposit Payment ......................................................................................................................... 41
Figure 23 Architecture Diagram .................................................................................................................. 44
Figure 24 Entity Relationship Diagram........................................................................................................ 45
Figure 25 DFD Level 0.................................................................................................................................. 48
Figure 26 DFD Level 1.................................................................................................................................. 49

viii
FoodSetGo

Figure 27 Class Diagram .............................................................................................................................. 50


Figure 28 Customer Activity Diagram ......................................................................................................... 51
Figure 29 Restaurant Activity Diagram ....................................................................................................... 52
Figure 30 Customer Sequence Diagram (Signup) ....................................................................................... 53
Figure 31 Customer Sequence Diagram (Login).......................................................................................... 53
Figure 32 Restaurant Sequence Diagram.................................................................................................... 54
Figure 33 System Administration Sequence Diagram................................................................................. 54
Figure 34 Collaboration Diagram ................................................................................................................ 55
Figure 35 State Diagram 1........................................................................................................................... 56
Figure 36 State Diagram 2 ........................................................................................................................... 57
Figure 37 Component Diagram ................................................................................................................... 58
Figure 38 Deployment Diagram .................................................................................................................. 58

ix
FoodSetGo

CHAPTER – 1

INTRODUCTION TO THE PROBLEM

1
FoodSetGo

1.1 Introduction
The Food Set Go system sets up a food menu online and customers can easily place the order as
per they like. Also with a food menu, online customers can easily track the orders. The
management maintains customer’s database, and improve food delivery service. The Restaurant
management systems motivates us to develop the system. There are various facilities provided
so that the users of the system will get service effectively. Again, the idea comes that mostly mess
users are person who are shifted for various reason in new cities. So, they are interrelated.
Increasing use of smart phones is also considered as a motivation, so that any users of this system
get all service on single click. Another motivation can be considered as the system will be
designed to avoid users doing fatal errors, users can change their own profile, users can track
their food items through GPS, and users can provide feedback and recommendations. This
proposed system will be used by the people who keep shifting from cities to cities. As well as, it
will be useful for the students studying in different cities. There will be no limitation on the
amount of order the customer wants. Our proposed system provides the general population with
the facility of locating nearby restaurants, ordering their meal thru our system and delivering
them at their doorstep. The software will first automatically detect the location of the user or the
user can manually enter their location. Then the program will show the user, all the nearby
restaurants registered with the software. Users can also locate restaurants with a specific food
type like fast food or desi. Users can check different credentials, such as name, address and
contact info of the restaurant registered with the system. Payment method would be cash on
delivery. The system/interface will take input from the user. The major attributes that will give
input to the dataset are: name, address, email-Id, mobile no. etc. The output will include
user/customer’s Order, Bill, Feedback and Payment options. Initially there will be 15 to 20
restaurants considered inside Lahore city.

1.2 Purpose
Our main Purpose is to develop an online food ordering system that minimizes the amount of the
burden on the staff at restaurants by

 Allowing users to place their order online using android app (in future) and website on
computers.
 That saves customer’s time and expenses by allowing them ordering with few clicks
without the need to be put in waiting line and long loop calls.
 That is convenient for customers to use.
 That is available for customers 24/7.
 That is specifically designed to target the Lahore customers.
 That is fast so the order customer places reaches related restaurant as quickly as possible.

2
FoodSetGo

 That can be used on android smart phones and computers.


 That provides all the updated information from all the restaurants given.
 That will allow updates and changes to be made easily without any complexities.
 That gives customers with full options they want to know about ingredients, prices and
time needed.
 That it is user friendly.

1.3 Objective
Following are the core objectives we will achieve at end.
• It is easier for customers to visit a single website or app instead of visiting every
restaurant chain in the area.
• With a website or app, customers have more options and it becomes easier to explore
all the restaurants and cuisines available in the area.
• Customers can compare prices, reviews and ratings for quality assurance.
• To increase efficiency and improve services provided to the customers through better
application of technology in daily operations.
• Customers can have a visual confirmation that the order was placed correctly.
• Accessibility freedom of Customer.
• Customer satisfaction and happiness.
• Quick response of the users’ queries.
• Having a relationship between a restaurant and the customers.
• Give the customer an opportunity to buy Breakfast, Lunch and Dinner on the click of
a button.

1.4 Existing Solution


The competitor system we studied are
 FoodPanda
 Cheetay
Our proposed system is better from our competitors as we are providing 2 different features in
our system from them.
1. We are providing Live Tracking of the order delivery.
2. We are adding an extra module for job opportunities where different restaurants can post
for opening of any post at their restaurant like chef, salesman, manager etc. and a person
who is registered with Food Set Go can apply for that job.

3
FoodSetGo

1.5 Proposed Solution


With every minute of increasing traffic, going out to buy things is quite a hassle and it is even
more troublesome if you are not sure where to go or what to eat. So, following points motivated
us to build this proposed system.
1. Customers choose to order food online because it’s literally at their fingertips.
2. It’s visually appealing and stimulating to all of the hungry customers.
3. Usually due to the noise, either in the restaurant or on the other end of the line all it takes
is one simple mistake to compromise an order and frustrate a customer. With Food Set
Go, all preferences are specified directly by the customer, so there is no room for
confusions or misunderstandings.
4. An online menu is simpler to manage by the restaurant and easy to understand by
customer.
5. Less hassle for customer.
6. GPS enabled live tracking of delivery.
7. Update menu as well as posting an ad for job opportunity in restaurant.

4
FoodSetGo

CHAPTER – 2

SOFTWARE REQUIREMENT SPECIFICATION

5
FoodSetGo

2.1 Introduction
2.1.1 Purpose
FoodSetGo is a system designed primarily for use in the online food ordering system. This
system will help restaurants to increase scope of business by reducing the labor cost
involved. The system also allows to quickly and easily manage an online menu which
customers can browse and use to place orders with just few clicks. Restaurant employees
then use these orders through an easy to navigate graphical interface for efficient
processing.

2.1.2 Scope
FoodSetGo main aim is to simplify and improve the efficiency of the ordering process for
both customer and restaurant, minimize manual data entry and ensure data accuracy and
security during order placement process. Customers will also be able to view product
menus and there ingredients and be able to have a visual confirmation that the order was
place correctly.

2.1.3 Overview
Our proposed system is an online food ordering system that enables ease for the
customers. It overcomes the disadvantages of the traditional queueing system. Our
proposed system is a medium to order online food hassle free from restaurants as well as
mess service. This system improves the method of taking the order from customer. The
online food ordering system sets up a food menu online and customers can easily place
the order as per their wish. Also with a food menu, customers can easily track the orders.
This system also provides a feedback system in which user can rate the food items. The
system will be designed to avoid users doing fatal errors, users can change their own
profile and users can track their food items through GPS. We will make a website as well
as an Android App of this system with a central database.

2.2 Overall Description


2.2.1 Product Perspective
FoodSetGo provides the functionality for customers to place their order and supply
necessary details. Menu management allows the restaurant to control what can be
ordered by the customers. Order Retrieval System allows restaurant to keep track of all
orders placed. This component takes care of order retrieving and displaying order
information.

6
FoodSetGo

2.2.2 Product Functions


Detailed functionality of each feature.
Administration:
 Add, Delete and Block Customers.
 Add, Delete and Block Restaurants.
 Add and Delete jobs of restaurants.
 Entertain the queries of Customers and Restaurants.

Customer:
 Register
 Login / Logout
 View Menu
 Add Meal to Cart
 Place Multiple Meal Orders
 Can see total bill of ordered meal
 Delete Orders
 Track Order Delivery
 Apply for Job
 View Restaurant details like Address and Contact Number

Restaurant:
 View Order
 Cancel Order
 View Menu
 Update Menu
 Add Job Opportunity
 Delete Job Opportunity
 View Customer Details
 Call Customer for Confirmation of Order Placed

System Including Features:


 List of Restaurants
 Remaining Time in delivering meal
 Open and Closed Restaurants
 Progress of Meal
 Chatting facility for Customers

Maybe some functionalities will be added later in the system.

7
FoodSetGo

2.2.3 User Characteristics


 Customer: Customer is a person who wants to order meals to be delivered from
the restaurant. Customers will sometimes order multiple meals. Orders are being
placed from home or by smartphone or tablet apps.
 Restaurant Manager: The Manager is a restaurants employee who establishes
and maintains daily menus of the food items available from the restaurant. Some
menu items may not be available for delivery. The Manager will also define the
restaurant’s deals. The Manager will need to edit existing menus periodically.
 Delivery Person: As the Restaurants Staff prepare orders for delivery, they will
issue delivery requests to a Delivery Person. The Deliverer Person will pick up the
food and deliver it to the Customer.

2.2.4 Constraints
 User should know how to use internet.
 User needs to register to have access to every restaurant.
 A user cannot be registered twice by same email address.
 Email and password is used for authentication of user.
 Database server may have connectivity issue which may hinder other functionality
of the system.
 Loading time of the system may be an issue. It will be variable because of
difference in end user computer specification and internet quality.
 All database operations must be with MySQL Database.
 Scripting can be only in JavaScript.

2.2.5 Assumptions and Dependencies


AS-1: The restaurant is open for breakfast, lunch, and dinner 7 days a week.
DE-1: The operation of FoodSetGo depends on changes being made in the Payroll
System to accept payment requests for meals ordered with the FoodSetGo.
DE-2: The operation of FoodSetGo depends on changes being made in the Restaurant
Inventory System to update the availability of food items as FoodSetGo accepts meal
orders.

2.3 Specific Requirements


2.3.1 Non-functional Requirements
 Error Handling
System shall handle expected and not expected errors in ways that prevent loss in
information and long downtime period.

8
FoodSetGo

 Performance Requirements
The software shall accommodate to save high number of records of customers
and products items without any fault. The performance of the system is not only
depends on web server but also on end users computer. The system is designed
using PHP with MySQL database. All pages of system are light weight as there will
be PHP and HTML coding with light images. We are not using high graphics and
big size images that will take forever to load. Time is the main factor involved in
performance; our application fulfills every desired task in the minimum time. The
performance of the system depends upon web server and upon network speed.
This system is web based therefore it also depends upon internet speed.
The XAMPP tool was used while developing the system so it makes it more
efficient to perform in any environment. We have made a system that performs
well in all situations like low speed network as well as high speed.
 Software Requirements
Software use shall not cause any harm to human users. It is in fact build for the
benefit of the customers who will save a lot of time and money through online
order and delivery instead of wasting time in waiting and money on extended long
phone calls.
 Security Requirements
Software will use secured database. Only registered user can order and a
privileged Admin can access their restaurant. The system will not allow anyone to
place order without registering as the information during registration will be used
for delivery. Registration is only a one-time process and it will save user the hurdle
of giving his information of place, phone and name. Only a privileged admin will
have access to the admin panel of restaurant. Security is also placed on user
without admin privilege trying to access the admin panel through URL. User’s
personal information like phone is encrypted and secured.
 Efficiency
With technological advancements life has become much easier, efficient and fast.
As our generation has entered to a digital era, every field of life has altogether
adopted a new change.
The computerized system introduced here will increase efficiency. Due to accurate
speed it will work properly. Use of sessions for most of our work makes this site
efficient and performs faster. The order, food menus are processed through
database which make our site efficient.

9
FoodSetGo

 Reliability
Our system is very reliable. When a user submits his order selecting meal from his
favorite fast food points, his order is then split and submitted to the concerned
restaurant that can view order, customer information and then deliver it.
Digital system is for more reliable than manual as data managed through online
databases instead of oral or manual orders. There are high chances of managers
or the cook forgetting the orders. Our system makes sure the order is in the order
list until it is delivered. Then the admin of the franchise can delete that order if it
is submitted successfully.
 Data Security
Our system secures personal information of the users by encrypting. Our system
makes sure no one can access the admin panel other than the authorized person.
As we have different franchises in our system. We make sure one admin cannot
access other franchise personal data.
 Maintainability
Our system is easily maintainable. Flaws are easily detected and removed.
 Validation
Validation is one of the strong point of our system. We are using validation from
users register forms to submit forms and from main admins management of the
system to the station admins management of their station. We are using
validation everywhere necessary in the system. No user is allowed to submit their
order without giving the necessary details by the system. No restaurant admin can
insert data without going through various validation checks.
 Modification
We allow data modification of certain aspects of the system. For example a
franchise wants to delete the menu or want to insert a new one, it is easily doable
through their station admin panel. We have made sure the modification is doable
as it is constant need of fast food points to add or remove food menus.
 Portability
This system can run on any system like Windows, Macintosh or even Android or
iPhone. This system can run on any browser like Chrome, Firefox, Opera or Safari.

2.3.2 Functional Requirements


Functional requirement is used to define a function of a system and its components.
Functional requirements of FoodSetGo may be its technical details, data manipulation
processing and other specific functionality that define what a system is going to do.

10
FoodSetGo

2.3.2.1 Administration
o Add, Delete Customers.
o Add, Delete Restaurants.

ID: FR_01
Name: Manage Customer
Description Input Output Basic work flow
Administration can add or Login Creation or Enter customer
delete any customer. deletion of a details and add or
Details of customer account. delete him in the
customer system.

Table 1 Manage Customers

ID: FR_02
Name: Manage Restaurant
Description Input Output Basic work flow
Administration can add or Login Creation or Enter restaurant
delete any restaurant. deletion of a details and add or
Details of restaurant delete it in the
restaurant account. system.

Table 2 Manage Restaurant

2.3.2.2 Customer
o Register
o Login
o View Menu
o Add Meal to Cart
o Can see total bill of ordered meal
o Delete Orders
o Track Order Delivery
o Apply for Job

11
FoodSetGo

ID: FR_03
Name: Register
Description Input Output Basic work flow
Register customer into the system Name Creation of a Customer opens
customer the app and click
Address account. on register
button.
Contact Number Customer put his
all required
Email Address information and
customers
account is
created.
Table 3 Customer Register

ID: FR_04
Name: Login
Description Input Output Basic work flow
Customer can login into the system Email Address Login of a Customer opens
customer the app and click
on login button.
Password Customer put his
email address
and his password
which he created
while registering.
Customer is
logged into the
system.
Table 4 Customer Login

12
FoodSetGo

ID: FR_05
Name: View Menu
Description Input Output Basic work flow
Customer can view the Restaurant Name Shows menu of Customer opens
menu of a restaurant. selected the app and click
Food Type restaurant. on selected
restaurant.
Restaurant menu
appears on
customer screen.
Customer can
select his desired
meal.
Table 5 View Menu

ID: FR_06
Name: Add Meal to cart

Description Input Output Basic work flow


Customer can add his Restaurant Customer desired Customer opens
desired meal into his cart. meal is added into the app and click
Meal the cart and ready on restaurants
for order desired meal and
confirmation. clicks on add to
cart. Customer can
now confirm the
order of his
selected meal.
Table 6 Add Meal to Cart

13
FoodSetGo

ID: FR_07
Name: Total Bill
Description Input Output Basic work flow
Customer can now see his View Cart System shows the Customer click on
total bill of his selected meal. cart of his selected cart button.
meals and shows Customer can now
the total amount see the selected
to be paid. meals and his total
bill.
Table 7 Total Bill of Customer

ID: FR_08
Name: Delete an Order
Description Input Output Basic work flow
Existing order is Delete all the Order Deleted Cancel/delete the
deleted/cancelled. information of the order
order.
Table 8 Delete/Cancel Order

ID: FR_09
Name: Track Order

Description Input Output Basic work flow


Customer can now track his Tracking ID System shows the Customer will
meal. delivery boys enter his meals
location on the tracking id in the
map. system. The
system shows the
pin point of his
meal on the map
weather it’s at the
restaurant or
delivery person is
on his way.
Table 9 Track Order

14
FoodSetGo

ID: FR_10
Name: Apply for Job
Description Input Output Basic work flow
Customer can apply for the Check Restaurants Available jobs. Customer click on
posted jobs on the portal. Vacancies. careers button.
Customer can now
see the open
vacancies at
different
restaurants.
Table 10 Apply for Job

2.3.2.3 Restaurant
o Register
o Login
o View Order
o Cancel Order
o Update Menu
o Add Job Opportunity
o Delete Job Opportunity
o View Customer Details

ID: FR_11
Name: Register
Description Input Output Basic work flow
Register restaurant Restaurant Name Creation of a Restaurant opens
into the system. restaurant the app and click
Address account. on register button.
Restaurant put his
Contact Number all required
information and
Email Address restaurant account
is created.
Menu
Table 11 Restaurant Registration

15
FoodSetGo

ID: FR_12
Name: Login
Description Input Output Basic work flow
Restaurant can Email Address Login of a Restaurant opens
login into the system. restaurant the app and click
on login button.
Password Restaurant put his
email address and
his password
which he created
while registering.
Table 12 Restaurant Login

ID: FR_13
Name: View Order

Description Input Output Basic work flow


Restaurant can now see the View orders of System shows the Restaurant click on
orders that customers made. customers list of ordered orders button.
meals of the Restaurant can
customers. now see the
selected meals of
customers.
Table 13 View Order

ID: FR_14
Name: Cancel an Order
Description Input Output Basic work flow
Existing order is Cancel all the Order Cancelled Cancel the order and
cancelled. information of the system will inform the
order. customer that your
order has been
cancelled by the
restaurant.
Table 14 Cancel Order

16
FoodSetGo

ID: FR_15
Name: Update Menu
Description Input Output Basic work flow
Restaurant can update or Deals Updated Menu. Restaurant
change the menu into the system. manager can
New Prices update the menu
and change the
Delete a meal prices of meals or
from the list. add any new
deals and
discounts.
Table 15 Update Menu

ID: FR_16
Name: Add Job

Description Input Output Basic work flow


Restaurant can post a job Available Posts Job is Posted Restaurant
opening into the system. Managers can post
Eligibility Criteria a job opportunity
in the system so
Required Staff customers can also
apply through
same system
without any hassle.
Table 16 Post a Job

ID: FR_17
Name: Delete Job
Description Input Output Basic work flow
Existing job opportunity is Delete all the Job Deleted Delete the Job and its
deleted. information of the details.
job.
Table 17 Delete Job

17
FoodSetGo

ID: FR_18
Name: Customer Details
Description Input Output Basic work flow
Restaurant can see all the Details of customer. Customer details When an order is
details of the customer. placed in the system,
restaurant can now
see the required
details of the
customer that are
necessary for the
meal delivery like
customer Name,
Address and contact
number.
Table 18 Customer Details

18
FoodSetGo

Chapter – 3

Use Case Analysis

19
FoodSetGo

3.1 Aggregated Use Case Diagram

Figure 1 Aggregated Use Case

3.2 Administration
3.2.1 Login

Figure 2 Admin Login

USE CASE # 01 Login


Goal in Context Admin can login by providing username and password.
Preconditions Admin should have access to the app.
Success End Condition Admin can login successfully.
Failed End Condition Admin can’t login.

20
FoodSetGo

Primary, Administrator.
Secondary Actors
Trigger Login Request comes in.
Basic Events Flow Step Action

1 Admin press on Login button.


2 Admin provide his username and password.
3 App check username and password with registered data.
4 Admin is perfectly logged in.
5 App shows the registered restaurants and customers screen.
EXTENSIONS Step Alternative Flow
3a Incorrect username or password.
3a1. Ask the username or password to re-enter.
3b Admin is not registered.
3b1. Redirect him to registration page to register first.
Superordinates None
Subordinates (included use None
cases)
Table 19 Admin Login

3.2.2 Manage Issues

Figure 3 Manage Issues

USE CASE # 02 Manage Issues


Goal in Context Manage any issue comes from restaurant or customer.

21
FoodSetGo

Preconditions Admin should be logged in and have full contact with both the restaurant and
the customer.
Success End Condition Managed issues without any loss of stakeholders.
Failed End Condition Issue is not managed and lose any restaurant or customer or both.
Primary, Administrator
Secondary Actors
Trigger Any complain comes in.
Basic Events Flow Step Action

1 Admin is logged in.


2 Admin open the complaints section.
3 Admin contact with complaining person.
4 Ask about their issues.
5 Provide a reasonable solution to the issue.
6 Penalize the person who is responsible for issue.
EXTENSIONS Step Alternative Flow
6a Restaurant does not provided right order meal.
6a1. Contact with customer to place his order again.
6a2. Penalize the restaurant.
6b Customer provided wrong address or does not received meal.
6b1. Contact with customer personally.
6b2. Give warning to customer and block his order from that specific
restaurant.
6c Same customer does not receive order 2 times.
6c1. Block that person from the app so he cannot order again.
Superordinates None.
Subordinates (included use None.
cases)
Table 20 Manage Issues

22
FoodSetGo

3.3 Customer
3.3.1 Register

Figure 4 Customer Registration

USE CASE # 03 Register


Goal in Context Person register himself on our app, expects to order meal, receive meal and to
be billed.
Preconditions Person does not be registered already.
Success End Condition Person should be registered successfully and can login.
Failed End Condition Person cannot register himself on our app.
Primary, Customer, Restaurant Manager.
Secondary Actors
Trigger Registration request comes in.
Basic Events Flow Step Action

1 Person enter on registration button.


2 App require person’s information like name, address and contact
number.
3 Person fill the required fields.
4 App check if the required information is valid.
5 App successfully register the person.
EXTENSIONS Step Alternative Flow
4a Any provided information is invalid.
4a1. Highlight the required field.
4a2. Ask to Re-enter the required field.
Table 21 Customer Registration

23
FoodSetGo

3.3.2 Login

Figure 5 Customer Login

USE CASE # 04 Login


Goal in Context Person can login by providing username and password and can place order.
Preconditions Customer should be registered with our app.
Success End Condition Customer can place order and pays the amount for order.
Failed End Condition Customer can’t login.
Primary, Customer, Restaurant Manager, Administrator.
Secondary Actors
Trigger Login Request comes in.
Basic Events Flow Step Action

1 Customer press on Login button.


2 Customer provide his username and password.
3 App check username and password with registered data.
4 Customer is perfectly logged in.
5 App shows the restaurants and meals screen.
EXTENSIONS Step Alternative Flow
3a Incorrect username or password.
3a1. Ask the username or password to re-enter.
3b Customer is not registered.
3b1. Redirect him to registration page to register first.
Superordinates None
Subordinates (included use None
cases)
Table 22 Customer Login

24
FoodSetGo

3.3.3 Search Restaurant

Figure 6 Search Restaurant

USE CASE # 05 Search Restaurant


Goal in Context Customer can search restaurant by providing name or can search by providing
type of food like Burger, Pizza, Chinese etc.
Preconditions Customer should be logged in.
Success End Condition Customer found his restaurant and ordered his meal.
Failed End Condition Restaurant does not appear on search and customer do not place order.
Primary, Customer.
Secondary Actors
Trigger Search Restaurant request comes in.
Basic Events Flow Step Action

1 Customer enter restaurant name or type of food on search bar.


2 App check if the restaurant is registered with the app.
3 App shows the searched restaurant on top of the list and similar down.
4 Customer open the restaurant.
5 Restaurant menu appears on the screen of customer.
EXTENSIONS Step Alternative Flow
2a Restaurant is not registered.
2a1. App shows the restaurants with similar type of food serving.
1a Customer enter type of food.
1a1. App shows all restaurants serving that food.
Superordinates None.
Table 23 Search Restaurant

25
FoodSetGo

3.3.4 Select Meal

Figure 7 Select Meal

USE CASE # 06 Select Meal


Goal in Context Customer selects his meal and place order and expects to be billed.
Preconditions Customer should selected a restaurant.
Success End Condition Customer place an order, receives meal and expects to be billed on delivery.
Failed End Condition Customer cannot find his meal in search or similar food.
Primary, Customer
Secondary Actors
Trigger Add to cart request comes in.
Basic Events Flow Step Action

1 Customer searches the restaurant.


2 Customer opens his desired restaurant menu.
3 App shows the menu of that restaurant.
4 Customer selects his meal from the given menu.
5 Customer adds the meal into cart.
6 Customer can place order.
Superordinates None.
Subordinates (included use None.
cases)
Table 24 Select Meal

26
FoodSetGo

3.3.5 Add Meal to Cart

Figure 8 Add Meal to Cart

USE CASE # 07 Add Meal to Cart


Goal in Context Customer add his meal to cart and can place order and expect to be delivered
and billed.
Preconditions Customer should select any meal.
Success End Condition Customer places an order and expects the meal to be delivered and to be billed.
Failed End Condition Customer cannot find his desired meal.
Primary, Customer
Secondary Actors
Trigger Add to Cart request comes in.
Basic Events Flow Step Action

1 Customer press on a meal to be added to cart.


2 Customer can increase the quantity by adding again that meal into
cart.
3 App adds selected meal into cart.
4 App shows the invoice of meal added to cart to be billed by customer.
EXTENSIONS Step Alternative Flow
2a Increase meal quantity.
2a1. Customer can increase quantity by pressing on + button beside
meal name.
2a2. Customer can decrease quantity of meal or remove from cart by
‘-‘ button beside meal name.
Superordinates None.
Table 25 Add Meal to Cart

27
FoodSetGo

3.3.6 Place Order

Figure 9 Place Order

USE CASE # 08 Place Order


Goal in Context Customer places an order from the available choices after adding meal to his
cart.
Preconditions Customer is logged in, and has meal in his cart.
Success End Condition Order has been made, restaurant is processing the order.
Failed End Condition Restaurant does not start processing order, customer gave the wrong address.
Primary, Customer
Secondary Actors
Trigger Place Order request comes in.
Basic Events Flow Step Action

1 Customer selects the meal from restaurant.


2 App captures customer name, address, and contact number and
ordered meal and transfer to the restaurant.
3 App shows the customer his total bill.
4 Customer adds the voucher code to get discount.
5 App shows total bill after discount.
6 Customer selects the payment method.
7 Customer selects the time to deliver the food.
If not selected any, default time will be 45 mins at present date after
placing order.
EXTENSIONS Step Alternative Flow
4a Customer provide the voucher code.
4a1. Voucher is expired.

28
FoodSetGo

4a2.Incorrect voucher code.


6a Customer selects Credit card instead of cash.
6a1. App ask the customer to provide card details.
6a2. App deduct bill amount from card.
7a Customer select the time to deliver meal.
7a1. Restaurant deliver meal on selected time and date.
Superordinates None.
Subordinates (included use None.
cases)
Table 26 Place Order

3.3.7 Track Order

Figure 10 Track Order

USE CASE # 09 Track Order


Goal in Context Customer can track his meal and knows when it will be delivered.
Preconditions Customer should selected meal and place an order.
Success End Condition Customer can track his order and receive his order on time.
Failed End Condition Restaurant does not start processing the meal and app shows the expected time
of meal incorrect.
Primary, Customer
Secondary Actors
Trigger Track Order request comes in.
Basic Events Flow Step Action

1 Customer places an order.


2 Restaurant gives the estimated time of delivery.

29
FoodSetGo

3 Customer can see when the food is being started preparing.


4 Customer can see when the food is given to the delivery person.
EXTENSIONS Step Alternative Flow
4a Delivery person cannot be tracked by location on app.
4a1. Customer can track delivery person by contacting him.
Superordinates None
Subordinates (included use None
cases)
Table 27 Track Order

3.3.8 Make Payment

Figure 11 Make Payment

USE CASE # 10 Make Payment


Goal in Context The user is asked for the mode of payment. The payment is accepted in terms of
credit/debit card or is collected by delivery person and the customer is given a
bill regarding his ordered meal.
Preconditions The order has been confirmed and the total bill has been displayed on the screen
to the customer. Costumer decides to go ahead with the order.
Success End Condition Customer receives meal and pay the amount to delivery person.
Failed End Condition Customer has no money, invalid Credit Card.
Primary, Customer, Credit/Debit Card System, Delivery Person.
Secondary Actors
Trigger Customer clicks on Order Place button.
Basic Events Flow Step Action

1 Customer selects the mode of payment. i.e. Credit Card or Cash.

30
FoodSetGo

2 Customer makes the payment in cash.


3 Delivery Person collects the payment and gives back the change if
required.
4 Customer receives the meal and bill receipt.
EXTENSIONS Step Alternative Flow
1a Customer makes the payment by credit card.
1a1. App asks the Credit card details.
Superordinate None
Subordinates (included use Confirm order (use case 16)
cases) Receive Payment (use case 20)
Table 28 Make Payment

3.3.9 Apply for a Job

Figure 12 Apply for Job

USE CASE # 11 Apply for Job


Goal in Context The user can apply for the open job vacancies.
Preconditions Customer should be registered in the system.
Success End Condition Customer apply for the job successfully.
Failed End Condition Customer can’t apply for job.
Primary, Customer.
Secondary Actors
Trigger Customer clicks on Careers button.
Basic Events Flow Step Action

1 Customer selects Careers option.

31
FoodSetGo

2 Customer apply for the posted job by restaurant.


Superordinate None
Table 29 Apply for Job

3.4 Restaurant Manager


3.4.1 Register

Figure 13 Restaurant Registration

USE CASE # 12 Register


Goal in Context Manager register himself on our app, expects to add menu, receive orders.
Preconditions Restaurant does not be registered already.
Success End Condition Restaurant should be registered successfully and can login.
Failed End Condition Restaurant cannot register himself on our app.
Primary, Customer, Restaurant Manager.
Secondary Actors
Trigger Registration request comes in.
Basic Events Flow Step Action

1 Person enter on registration button.


2 App require restaurant’s information like name, address and contact
number.
3 Person fill the required fields.
4 App check if the required information is valid.
5 App successfully register the restaurant.
EXTENSIONS Step Alternative Flow

32
FoodSetGo

4a Any provided information is invalid.


4a1. Highlight the required field.
4a2. Ask to Re-enter the required field.
Superordinates None
Subordinates (included use None
cases)
Table 30 Restaurant Registration

3.4.2 Login

Figure 14 Restaurant Login

USE CASE # 13 Login


Goal in Context Restaurant can login by providing username and password.
Preconditions Restaurant should be registered with our app.
Success End Condition Restaurant can receive order.
Failed End Condition Restaurant can’t login.
Primary, Customer, Restaurant Manager, Administrator.
Secondary Actors
Trigger Login Request comes in.
Basic Events Flow Step Action

1 Restaurant manager press on Login button.


2 Provide his username and password.
3 App check username and password with registered data.
4 Restaurant is perfectly logged in.
5 App shows the orders that restaurant received.

33
FoodSetGo

EXTENSIONS Step Alternative Flow


3a Incorrect username or password.
3a1. Ask the username or password to re-enter.
3b Restaurant is not registered.
3b1. Redirect him to registration page to register first.
Superordinates None
Subordinates (included use None
cases)
Table 31 Restaurant Login

3.4.3 Update Menu

Figure 15 Update Menu

USE CASE # 14 Update Menu


Goal in Context Restaurant adds its menu and customer can place order from that given menu.
Preconditions Restaurant should be registered with app and is logged in.
Success End Condition Manager adds his menu to app and they provide all that food they shown in
menu.
Failed End Condition Some of meals they don’t provide that is in the menu.
Primary, Restaurant Manager
Secondary Actors
Trigger Add menu request comes in.
Basic Events Flow Step Action

1 Manager get registered with the app.


2 System checks if it’s a valid restaurant.

34
FoodSetGo

3 Manager login with app.


4 Manager provide the restaurant menu to the app.
5 App categorize the meals in sections like fast food, Chinese, Desi,
Drinks, and special meals.
6 Manager set the prices of every meal.
7 Manager sets if any discount they are giving.
EXTENSIONS Step Alternative Flow.
2a Is not a valid restaurant
2a1. It cannot be registered.
7a Discounts on meals.
7a1. Deduct the discounted amount from total bill.
Superordinates None.
Subordinates (included use None.
cases)
Table 32 Update Menu

3.4.4 Check Order

Figure 16 Check Order

USE CASE # 15 Check Order


Goal in Context Check the order being placed and prepare and to deliver it.
Preconditions Order must be placed by customer.
Success End Condition Order is placed by customer, prepared by restaurant and delivered successfully.
Failed End Condition Order is placed by customer but does not be delivered by restaurant.
Primary, Restaurant Manager
Secondary Actors

35
FoodSetGo

Trigger Place order request comes in by customer.


Basic Events Flow Step Action

1 Manager gets the notification of order being placed.


2 Manager captures the information of customer like address, name,
and contact number.
3 Manager captures the order details being placed.
4 Manager transfer the information to the kitchen to prepare food.
EXTENSIONS Step Alternative Flow
2a Restaurant does not deliver in that area of address.
2a1. Contact with customer and ask about delivery charges.
2a2. Notify the customer that order has been cancelled by restaurant.
3a Restaurant is out of that meal.
3a1. Contact the customer to cancel his order.
3b Restaurant is closed at that time.
3b1. Notifies the customer.
Superordinates None
Subordinates (included use None
cases)
Table 33 Check Order

3.4.5 Confirm Order

Figure 17 Confirm Order

USE CASE # 16 Confirm Order


Goal in Context Order is confirmed and being prepared and delivered to customer successfully.
Preconditions Order must be placed in.

36
FoodSetGo

Success End Condition Customer receives his food and restaurant have money for food.
Failed End Condition Customer does not have money, restaurant failed to deliver food.
Primary, Restaurant Manager.
Secondary Actors
Trigger Place order request comes in.
Basic Events Flow Step Action

1 Customer place an order.


2 Manager checks the order if they are serving it.
3 Manager transfer the details to kitchen for being prepared.
4 Manager contact with delivery person to pick up food and to deliver
5 Manager updates the status on app for customer tracking.
EXTENSIONS Step Alternative Flow
2a Out of that meal.
2a1. Notifies customer.
2b Out of meal.
2b1. Cancel the order.
Superordinates None
Subordinates (included use None.
cases)
Table 34 Confirm Order

3.4.6 Post a Job

Figure 18 Post a Job

37
FoodSetGo

USE CASE # 17 Post a Job


Goal in Context Restaurant can post a job opening in the system.
Preconditions Restaurant must be registered with the system.
Success End Condition Restaurant successfully posts a job.
Failed End Condition Restaurant failed to post a job.
Primary, Restaurant Manager.
Secondary Actors
Trigger Post a job request comes in.
Basic Events Flow Step Action

1 Restaurant is logged in.


2 Manager posts a job.
3 Manager defines about job and eligibility criteria.
4 Job post is successfully posted.
Superordinates None
Subordinates (included use None.
cases)
Table 35 Post a Job

3.4.7 Delete a Job

Figure 19 Delete a Job

USE CASE # 18 Delete a Job


Goal in Context Restaurant can delete their posted job.
Preconditions There must be a job is posted by the restaurant.
Success End Condition Manager deletes jobs post successfully.

38
FoodSetGo

Failed End Condition Manager faces an issue regarding deleting the job post.
Primary, Restaurant Manager.
Secondary Actors
Trigger Delete job request comes in.
Basic Events Flow Step Action

1 Restaurant manager is logged in the system.


2 Manager view the posted jobs.
3 Manager deletes a job.
Superordinates None
Subordinates (included use None.
cases)
Table 36 Delete a Job

3.5 Delivery Person


3.5.1 Deliver Meal

Figure 20 Deliver Meal

USE CASE # 19 Deliver Meal


Goal in Context Pick up meal from restaurant, deliver it to customer and get paid.
Preconditions Restaurant has prepared the meal.
Success End Condition Deliver meal to customer in time and get full payment.
Failed End Condition Does not delivered food, or get not paid.
Primary, Delivery Person
Secondary Actors
Trigger Ordered food is prepared.

39
FoodSetGo

Basic Events Flow Step Action

1 Delivery person get notified by restaurant.


2 He gets the detail of customer like address, name and contact.
3 He picks up the food from restaurant along with receipt of bill
4 Goes to customer given address.
5 Delivers the food.
6 Get payment successfully.
EXTENSIONS Step Alternative Flow
2a Does not find address.
2a1. Contact with customer to get directions.
Superordinates None
Subordinates (included use None.
cases)
Table 37 Deliver Meal

3.5.2 Receive Payment

Figure 21 Receive Payment

USE CASE # 20 Receive Payment


Goal in Context Payment is given to the delivery person.
Preconditions Person should deliver the right order of food. Customer should selected the cash
payment option.
Success End Condition Customer gets food, Person get paid.
Failed End Condition Customer didn’t received food, person is not paid.
Primary, Delivery Person

40
FoodSetGo

Secondary Actors

Trigger Order is being delivered.


Basic Events Flow Step Action

1 Person get to the given address.


2 Person gives the food to customer.
3 Person give him the receipt of food.
4 Delivery Person collects the payment and gives back the change if
required.
Superordinates None
Subordinates (included use None
cases)
Table 38 Receive Payment

3.5.3 Deposit Payment

Figure 22 Deposit Payment

USE CASE # 21 Deposit Payment


Goal in Context Payment is deposited to the restaurant and delivery person get his commission.
Preconditions Delivery person should get paid by customer.
Success End Condition Restaurant gets its payment and delivery person gets his commission.
Failed End Condition Delivery person is not get paid by customer or the restaurant.
Primary, Delivery Person
Secondary Actors
Trigger Gets the payment from customer.

41
FoodSetGo

Basic Events Flow Step Action

1 Customer pay the amount to delivery person.


2 Person give the receipt to the customer of the amount he paid.
3 Person deposit the total amount to the restaurant.
4 Delivery person got paid by restaurant.
Superordinates None
Subordinates (included use None.
cases)
Table 39 Deposit Payment

42
FoodSetGo

Chapter – 4

Design

43
FoodSetGo

4.1 Architecture Diagram


Any real-world system is used by different users. The users can be developers, testers,
business people, analysts and many more. So before designing a system the architecture is
made with different perspectives in mind. The most important part is to visualize the system
from different viewer’s perspective. The better we understand the better we make the
system.

Figure 23 Architecture Diagram

44
FoodSetGo

4.2 ERD with Data Dictionary


FoodSetGo is a website. In which we have different modules we provide facilities to our user
or customer in our site. First of all user visit home page and view all food items of different
restaurants which is registered with the system. FoodSetGo also provides jobs for customers.
Customers or users simply signup and apply jobs for specific posts.

Figure 24 Entity Relationship Diagram

System Data Dictionary

Column Type Attributes Null


id int(11) no
username varchar(30) no
password varchar(30) no
restaurant_name varchar(40) no
Table 40 Admin Data Dictionary

45
FoodSetGo

Column Type Attributes Null


id int(11) no
name varchar(100) no
email varchar(100) no
phone varchar(15) no
address text no
created datetime no
modified datetime no
status enum(‘1’,’0’) no
Table 41 Customer Data Dictionary

Column Type Attributes Null


id int(11) no
meal_code varchar(50) no
meal_title text no
price varchar(4) no
quantity varchar(4) no
total varchar(4) no
customer_name text no
customer_address varchar(200) no
customer_number varchar(11) no
restaurant text no
Table 42 Delivered Orders Data Dictionary

Column Type Attributes Null


job_id int(11) no
title varchar(50) no
restaurant text no
description text no
email text no
phone varchar(12) no
last_date varchar(50) no
Table 43 Jobs Data Dictionary

Column Type Attributes Null


id int(11) no
job_id int(11) no
applicant_name varchar(50) no

46
FoodSetGo

applicant_phone varchar(11) no
applicant_email varchar(50) no
restaurant varchar(50) no
Table 44 Job Applicants Data Dictionary

Column Type Attributes Null


id int(11) no
restaurant_name varchar(40) no
vendor_code varchar(30) no
Table 45 Restaurant Data Dictionary

Column Type Attributes Null


id int(11) no
username varchar(50) no
password varchar(50) no
Table 46 Main Admin Data Dictionary

Column Type Attributes Null


menu_id int(11) no
menu_title varchar(50) no
address text no
Table 47 Menu Data Dictionary

Column Type Attributes Null


id int(11) no
customer_id varchar(50) no
total_price varchar(50) no
created no
modified no
status no
Table 48 Orders Data Dictionary

Column Type Attributes Null


id int(11) no
name text no
username varchar(30) no
password varchar(20) no

47
FoodSetGo

purchases int(10) no
address varchar(50) no
phone varchar(11) no
Table 49 Users Data Dictionary

4.3 Data Flow Diagram


The Level 0 Diagram:
In this data flow model main admin have access to user profile. He can delete any user from
main admin. Customers have ability to register through our system they also give feedback
about our system and make orders. Their all records saved in our database. Restaurant
manager have access to food items. They can delete or update any product

Figure 25 DFD Level 0

48
FoodSetGo

The Level 1 Diagram:


Main admin can enter URL address into URL bar. After that their login page will appears they
enter their username and password then he has access to admin panel and he can also logout
when he wished. Customer can view jobs and make order and their record also saved in our
database. They can also make a profile for our application. Restaurant manager have access
to add and update any jobs about their restaurant and they also have access to add food
items view food items and delete food items.

Figure 26 DFD Level 1

49
FoodSetGo

4.4 Class Diagram


Class Diagram is the static view of system.

Figure 27 Class Diagram

50
FoodSetGo

4.5 Activity Diagram

Figure 28 Customer Activity Diagram

51
FoodSetGo

Figure 29 Restaurant Activity Diagram

52
FoodSetGo

4.6 Sequence Diagram


Sequence diagram describes an interaction by focusing on the sequence of messages that are
exchanged, along with their corresponding occurrence.

Figure 30 Customer Sequence Diagram (Signup)

Figure 31 Customer Sequence Diagram (Login)

53
FoodSetGo

Figure 32 Restaurant Sequence Diagram

Figure 33 System Administration Sequence Diagram

54
FoodSetGo

4.7 Collaboration Diagram

Figure 34 Collaboration Diagram

55
FoodSetGo

4.8 State Transition Diagram

Figure 35 State Diagram 1

56
FoodSetGo

Figure 36 State Diagram 2

57
FoodSetGo

4.9 Component Diagram

Figure 37 Component Diagram

4.1 Deployment Diagram

Figure 38 Deployment Diagram

58

Potrebbero piacerti anche