MOBILE FOOD ORDERING APPLICATION

ABSTRACT

The purpose of this thesis was to build a food ordering client server application for Tom Yum Thai Oy, which is a Thai restaurant in Vaasa.

For the customer, this application provides a view of current food information (category, name, image,price, description etc.) on the website and Android application. The customer can order food from these two platforms. For the administrator in restaurant, this application offers a series of operations to add, update, delete and query the information of food, food order and employees.

The application includes three parts: Background Management Platform, Website Foreground Public Page and Android Application. The Background Management Platform was implemented with S2SJ, a combination of Struts 2 framework, Spring framework and JPA framework. Servlet and JSP were used in the Website Foreground Public Page. The Android Application is obviously based on Android framework.

So far, all core functions were developed successfully and the progress of the project was most rewarding and generated an excellent experience in programming.

Keywords              Struts  2,  Spring,  JPA,  MySql,  Servlet/JSP,  Android,  Mobile

Food Ordering Application

TABLE OF CONTENTS

1

CHAPTER ONE INTRODUCTION .............................................................................................

 

2

 CHAPTER TWO Technology overview

 

 

2.1

Struts 2 Framework ................................................................................

 

 

2.2

Spring Framework ................................................................................

 

 

2.3

JPA Framework ....................................................................................

 

 

2.4

Android Framework .............................................................................

12

3

CHAPTER THREE  Application Description ..................................................................................

15

 

3.1

Functional Description .........................................................................

 

 

 

3.1.1

Background ..................................................................................

 

 

 

3.1.2

Website Foreground Public Page .................................................

 

 

 

3.1.3

Android Application .....................................................................

 

 

3.2

Class Hierarchy ....................................................................................

 

 

 

3.2.1

Background Management Platform .............................................

 

 

 

3.2.2

Website Foreground Public Page and Android Application ........

 

 

3.3

Sequence Diagram ...............................................................................

 

 

 

3.3.1

Background Management Platform ..........................................

 

 

 

3.3.2

Website Foreground Public Page and Android Application .....

 

4

CHAPTER FOUR DATABASE AND GUI DESIGN ..................................................................

 

 

4.1

Database Design ...................................................................................

 

 

 

 

 

 

 

 

 

4.2

GUI Design ..........................................................................................

 

 

 

4.2.1

Background Management Platform .............................................

 

 

 

4.2.2

Website Foreground Public Page .................................................

 

 

 

4.2.3

Android Application .....................................................................

 

5

CHAPTER FIVE IMPLEMENTATION .....................................................................................

 

 

5.1

Adding Food in Background Management Platform ...........................

 

 

5.2

Display Food Information in Website Public Page ..............................

 

 

5.3

Order Food in Website Public Page .....................................................

 

 

5.4

Display Food Information in Android Application ..............................

68

 

5.5

Order Food In Android Application .....................................................

 

6

CHAPTER SIX TESTING ........................................................................................................

 

7

CHAPTER  SEVEN CONCLUSIONS .............................................................................................

 

 

REFERENCES ..............................................................................................

 

 

APPENDICES

 

LIST OF FIGURES AND TABLES

 

Figure 1. Struts 2 request processing/2/

p.7

Figure 2. Struts 2 Architecture/2/

p.8

Figure 3. Spring Framework Architecture /3/

p.10

Figure 4. Android Architecture

p.13

Figure 5. Use Case diagram for administrator

p.16

Figure 6. Order state changing flow

p.21

Figure 7. Use case diagram for customer

p.22

Figure 8. Use case diagram for customer in Android Application

p.24

Figure 9. Order Module Controller Structure

p.26

Figure 10. Employee Module Controller Structure

p.28

Figure 11. Product Module Controller Structure

p.29

Figure 12. Module Structure

p.31

Figure 13. Controller structure in Website Foreground Public

p.32

Page

 

Figure 14. Controller structure in Android Application

p.35

Figure 15. Module structure

p.36

Figure 16. Background Management Platform Login

p.38

Figure 17. Product Category Management

p.39

Figure 18. Product Information Management

p.40

Figure 19. Order Management

p.42

Figure 20. Customer Purchase sequence diagram

p.43

Figure 21. Entity Relationship Diagram

p.50

Figure 22. Login page

p.51

Figure 23. Management main page

p.52

Figure 24. Category List View Page

p.53

Figure 25. Category Adding page

p.53

Figure 26. Product List View page

p.54

Figure 27. Add Product page

p.54

Figure 28. Product Style page

p.55

Figure 29. Order List View page

p.55

Figure 30. Order Detail Display View page

p.56

Figure 31. Dishes Display page

p.57

Figure 32. Customer Login page

p.57

Figure 33. Shopping Cart page

p.58

Figure 34. Launch Window

p.59

Figure 35. Register Window

p.60

Figure 36. Dishes Display Main Window

p.60

Figure 37. Dish Detail Information Window

p.61

Figure 38. Shopping Cart Window

p.62

Figure 39. Dish Modify Window

p.62

Figure 40. Order Confirmation Window

p.63

Table 1. Users Class Entity

p.44

Table 2. OrderFoods Class Entity

p.45

Table 3. Order Class Entity

p.45

 

p.46

Table 4. Employee Class Entity

 

Table 5. IDCard Class Entity

p.47

Table 6.

ProductInfo Class Entity

p.48

Table 7.

ProductType Class Entity

p.49

Table 8.

ProductStyle Class Entity

p.49

Table 9.

The application-testing table part 1

p.75

Table 10. The application-testing table part 2

p.77

Table 11. The application-testing table part 3

p.78

 

1    INTRODUCTION

 

 

With the rapid development of information technology, web application and Android application have been increasing in recent years. Compared with the desktop application, the advantages of web application for users are:

 

 

 

The advantage of the Android application:

 

 

 

 

 

Based on the advantages of both applications, I motivated myself to develop a combination project between web and Android application.

 

Tom Yum Thai Restaurant in Vaasa sells Chinese and Thai food. Due to the cheaper prices and delicious food, more and more people select to eat in this restaurant. Meanwhile, with the number of customers increasing, the new problem occurs. Because the space of the restaurant is limited, the restaurant can only seat a certain number of customers at the time, therefore, the full customer resource cannot be utilized.

 

Mobile Food Ordering Application is the key to solve this problem. Using this application, the customers need not go to the restaurant by themselves, but they can order the dishes through computers and Android mobiles anywhere.

 

The Background Management platform in this application was designed for the administrator. The Administrator will be able to manage food dishes, dish orders and company employees here.

 

  TERMS AND CONDITIONS

Using our service is LEGAL and IS NOT prohibited by any university/college policies

You are allowed to use the original model papers you will receive in the following ways:

1. As a source for additional understanding of the subject

2. As a source for ideas for your own research (if properly referenced)

3. For PROPER paraphrasing (see your university definition of plagiarism and acceptable paraphrase)

4. Direct citing (if referenced properly)

Thank you so much for your respect to the authors copyright

 

For more project materials

Log on to www.grossarchive.com

Or call

+2348130686500

+2348093423853