You are on page 1of 17

Nguyen Phuong Thuan

Supervisor: Pham Van Vung

Jan 2018

An investigation about Web service and its application in developing


Online Shopping Cart.
ABSTRACT

Today is the generation of technology. The Internet is becoming more and more popular, followed by
those that are made available through the internet. The popular services can be referred to as online
shopping, fast delivery service, order or proxy products online and so on.

Understanding user psychology, this project focuses on building a website that sells and leases related
cameras and accessories. The purpose is to make it easy for users to make purchases. Users can order
directly on the website or rent the product if desired. Customers can also book a product later to pick
up.

All website operations are done through Web Service, client side, database. Website details,
algorithms, tasks will be covered in the following sections.

ii
Contents
Abstract ..................................................................................................................................................ii
Contents ................................................................................................ Error! Bookmark not defined.
1 Project Proposal.............................................................................................................................. 1
1.1 Overview ................................................................................................................................ 2
1.2 Aim ......................................................................................................................................... 2
1.3 Objectives ............................................................................................................................... 2
1.4 Legal, Social, Ethical and Professional ................................................................................... 5
1.5 Planning (See Appendix A in the end of this report) .............................................................. 5
1.6 Initial References .................................................................................................................... 5
2 Literature Review ........................................................................................................................... 6
2.1 Introduction ............................................................................................................................ 6
2.2 Similar Product Research. ...................................................................................................... 6
2.3 What learn?............................................................................................................................. 6
2.4 The technologies will use for project development ................................................................. 7
3 Requirement specification .............................................................................................................. 9
3.1 Introduction ............................................................................................................................ 9
3.2 Project aim .............................................................................................................................. 9
3.3 Use roles ................................................................................................................................. 9
3.4 Functional Requirements ........................................................................................................ 9
3.5 Success criteria ..................................................................................................................... 10
3.6 Conclusions .......................................................................................................................... 10
4 Conclusion.................................................................................................................................... 11
APPENDIX A - Project Proposal .................................................................................................... 12

iii
iv
1 PROJECT PROPOSAL

Project design, implementation and evaluation


Project Proposal

An investigation about Web service and its application in developing Online Shopping Cart.

Nguyen Phuong Thuan

BTEC Level 5 HND Computing and Systems Development

GC00853

1
1.1 Overview

In this project, I'm building an Online Shopping Cart System.


Currently, the 4.0 industry has exploded. Everything can be exchanged, purchased through the
Internet. If we want to buy a cake or a shirt, instead of going to the store, we can now order online.
Fast delivery service will deliver to us, saving you more time in shopping. That's why this application
is built.

To implement this system, after reviewing I decided to choose the technology to develop the system.
The system will use the Web service to retrieve data from the database and send it to the client side.
Specifically, to implement Web service, this application will use the RESTful API, which is developed
based on the PHP language and MySQL.
On the client side PHP will be using, JavaScript, HTML and CSS to read JSON information from the
server side.

By using Web service, the system becomes more apparent. The database, the Web service, and the
client side are clearly separated. This makes the application more maintainability and extensibility. It
also makes modifying the system easier.

1.2 Aim
This project is to investigate about the Web service and its applications in developing Online
Shopping Cart.

1.3 Objectives

1.3.1 Understanding about Web service


Activities:
1. Understand and analyse web service technology
2. Learn and analyse vendors to develop web services.
3. Choose a provider to develop web services.
Deliverables:

2
1. A report about Web service technology (1000 noun)
2. A report about vendors to develop Web services. (400 noun)
3. A report about the choice provider to develop Web services (noun)

1.3.2 Collect requirements for the system


Activities:
1. Read book, journals, papers about the Web service
2. Evaluation of similar products, see the requirements of that product and apply to their
products.
Deliverables:
1. Requirement specification documentation.

1.3.3 Analyse the system


Activities:
1. Create context diagrams
2. Create use case diagrams
3. Describe the use cases (use case narratives, activity diagrams)
Deliverables:
1. Context diagrams
2. Set of use case diagrams
3. Set of use case descriptions

1.3.4 Design the system


Activities:
1. Create informational design (DB Design – ERD)
2. Create functional design (Class diagrams)
3. Create algorithm design (flow-charts, pseudo codes)
Deliverables:
1. ERD
2. Set of class diagrams
3. Set of pseudo codes/flow-charts for the algorithms used.

1.3.5 Implement the system


Activities:
1. Choose an appropriate programming language
2. Select a suitable DBMS
3. Select an appropriate IDE

3
Deliverables:
1. Report about the selected programming language
2. Report about the selected DBMS
3. Report about the IDE.
4. The software.

1.3.6 Testing the system


Activities:
1. Select test strategy, Black box, White box, Mixed (optional)
2. Write test cases
3. Do test
4. Test summary evaluations
Deliverables:
1. Report about the selected test strategy
2. Report about set of test cases
3. Report about the test results
4. Report about the test evaluations.

1.3.7 Evaluations the system


Activities:
1. Describe about the product built (screenshots + guide steps -> user manual)
2. Analyse the strengths and the weaknesses of the products
3. Analyse the strengths and the weaknesses of the technologies in this product
4. Analyse the strengths and the weaknesses of the selected software development methodology
in this product.
Deliverables:
1. Report about the selected test strategy
2. Report about set of test cases
3. Report about the test results
4. Report about the test evaluations.

1.3.8 Conclusion and future works of the system


Activities:

4
1. Write the conclusion
2. Write the future work
Deliverables:
1. Report about the conclusion
2. Report about the future work

1.3.9 Write the final report


Activities:
1. Write the first draft
2. Proof read the first draft
3. Complete the final report
Deliverables:
1. The first draft
2. The complete/final report

1.4 Legal, Social, Ethical and Professional


Identify and discuss any legal, social, ethical and professional issues and considerations in this
proposed project.

1.5 Planning (See Appendix A in the end of this report)

I plan to finish the project within almost a month. Include all such things as: designing, taking requests
from customers, coding, testing, evaluating, and writing reports. Estimated time to complete work in
almost a month including risk.

1.6 Initial References

5
2 LITERATURE REVIEW

2.1 Introduction
In this part. We will review all requirements from users, learn some similar products with the project.
Get ideas for building up a website.
We will also review the technologies that will be used in the project. This is very important, the
technology used must be appropriate for the project (in terms of time, budget, etc.).

2.2 Similar Product Research.


The idea of the project is the website rental camera and related accessories. Understand the main
points of the project. I have consulted, researched and reviewed the websites, products relative to my
project. Some web sites may include https://www.borrowlenses.com , https://www.hireacamera.com.

These websites are full of the main functions such as: cart module, access user hire camera, checkout,
detail view of products. In addition, the interface of these websites is also very easy to use for
customers. The main purpose of the website is always shown off the homepage. This is extremely
important.

2.3 What learn?


After researching many similar websites compared to this project. Looking at time, the plan was
oriented from the beginning. I decided to choose the website https://www.borrowlenses.com/ as a
feature product that we are going to follow that. Because of the simplicity and effectiveness of the
website. A full-featured website that allows users to perform all sales and lease-related tasks.

All major features of this website will be implemented in this project.


Base on sample website, we learned a bunch of highlight features, good functional like how to add to
cart, how to make order page, how to hire a product and one thing important, we learned from the
interface of one site (one of these highlight points).

6
2.4 The technologies will use for project development

On Server:
This website is based on web service.
A Web service is a set of methods that allow remote access via an HTTP URL or other connection
method. The result that it returns is usually in XML or JSON format. Since it is remotely remote it
should be used to build distributed systems and applications.

Some features of Web Service:


+ Can be accessed by any application.
+ Does not depend on programming language.
+ Support for operations between heterogeneous components.
+ Easy maintenance and low cost development.

There are 2 ways to implement web service: SOAP and RESTful

REST (Representational State Transfer) is an architectural style that provides APIs over the internet
to handle CRUD operations on data.

SOAP (Simple Object Access Protocol) is a protocol that uses XML to define plain text data via
HTTP. SOAP is the way Web Service uses to transmit data. Because it is XML-based, SOAP is a
platform-independent protocol as well as any programming language.

In this case I use the RESTful API instead of using SOAP because:
+ REST uses the HTTP standard, so it's a lot simpler than it used to be. Create clients, develop APIs,
understand documents, and there are not many things that REST cannot do. Basically this is actually
much better than SOAP
+ REST allows a variety of data formats, while SOAP only allows XML.
+ REST has better performance and scalability. REST reads can be cached again, and SOAP does not.

Language to implement web service: PHP


PHP is a relatively popular language in the current web design. PHP is an open source language with a
huge community of users in the website design industry. It is also an object-oriented programming
language, rich library and security capabilities are also relatively safe.

On Database:

7
On the data storage side, this project will use MySQL to store data.
MySQL database has become the most popular open source database in the world because of its fast
and stable processing mechanism, high reliability and ease of use.
Some of the advantages of MySQL are instant availability, strong transaction support, reliable web
and data storage, robust data security, and more.

On Client site:
This project using PHP, HTML, CSS, JS and related library to read all JSON object from web service.

8
3 REQUIREMENT SPECIFICATION

3.1 Introduction
This site allows users to view products, order or lease products online.
On the staff side. The administration system allows staff to perform product management, orders, and
categories such as adding, editing, deleting, searching, returning items, etc.

3.2 Project aim


This system aims:
- Home site: View product by category, add product to cart, check out, user login.
- Admin site: Manage Products, Orders, Customers.
- With Products: Staff can Create, Read, Update, Delete and Search products.
- With Orders: Staff can view Order detail, Delete orders and Confirm Order after customer
return products.
- With Customers: Staff can view Customer detail, Delete customers.

3.3 Use roles


The system has three roles: Guest, User and Staff.

3.4 Functional Requirements


On the Admin site:
- Management Products
- Management Categories
- Management Orders
- Management Users
All of the function in the management are: CREATE, READ, UPDATE and DELETE.

On the Customer site:


- View product detail.
- Hire product, Reverse product.
- Add product to cart
- Check out (Customer need login for Check out, all of the Guests Click Checkout will be
redirecting to Login page.
- Login, Log out.

9
3.5 Success criteria
- Build a friendly and easy-to-use website for users.
- Admin site: Manage your data easily.
- Application: Easy to upgrade as well as maintenance.
- Make sure the program is running correctly.

3.6 Conclusions
In summary, the required functions, such as the Manage product, the hire product, are the main
functions of the program. Priority must be given (do first).

10
4 CONCLUSION

Through this report. The reader can generalize this application for what, why we need to build this
application. From getting requirements from users, refer to similar products. This report covers the
entire technology involved for project development, detailed planning as well as basic design of the
project.

11
APPENDIX A - Project Proposal

1. Schedule

12
2. Gantt chart

13

You might also like