1. Trang chủ
  2. » Tất cả

Software design specification for online tech shop

34 12 0
Tài liệu đã được kiểm tra trùng lặp

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Tiêu đề Software Design Specification for Online Tech Shop
Người hướng dẫn Phạm Quang Huy, Student Supervisor, Nguyễn Tất Trung, Instructor
Trường học FPT University
Chuyên ngành Software Engineering
Thể loại Software Design Specification
Năm xuất bản 2023
Thành phố Hanoi
Định dạng
Số trang 34
Dung lượng 2,52 MB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Account microservice1.1 Log in Log in: Screen Mockup Log in: Sequence Diagram Log in: Class Diagram 1.2 Register Register – Step 1: Screen Mockup... Register – Step 2: Screen MockupRegis

Trang 1

IS1210 My TVSE 06103 SE06103 SWD ass1

Introduction to Software Engineering (SWE102)

Trang 2

MINISTRY OF EDUCATION AND TRAINING FPT UNIVERSITY

SOFTWARE DESIGN SPECIFICATION

for

Online Tech-Shop

Course information Student HE130022 – Phạm Quang Huy

Supervisor Mr Nguyễn Tất Trung

Subject Code SWD391

Trang 3

2 Project Scope:

Online Tech-shop has 3 group users: customer, staff, administrator.

The application consists of 4 main microservices:

Order procesing microservice - Handle order action of customer

including checkout cart, payment

- Provide order logging feature to staff and admin

Trang 4

B Business flow

I Activity Diagram

Customer activity diagram

Trang 5

II Solution requirements

2.1 Functional Requirement

2.1.1 Authentication

- If customers want to buy something, they must log in or sign in

- The Sales system should automatically log in if the customer does not log out

- Customer account will be automatically logged out if do not active in 10 minutes

- Username must be email address

- Password must be at least 8 characters, at least 1 uppercase character, 1 number

2.1.2 User

- The administrator has permission to add, edit, delete staff

* Staff

- The staff has permission to edit, delete customers

- The staff has permission to add, edit, delete products

* Customer

- The customer can browse products and place an order.

2.1.3 Product

- Display product detail

- Must specify availability (In stock/Out of stock)

- Display related products in detail page

2.1.4 Cart

- Display number of products and the total price that users added

- Users can add more, edit or delete products in cart

Trang 6

2.1.5 Order

- Display payment method: COD, Visa card,

- Orders can be exported into invoices

- Customer can view status of order (before deliver/delivering/done/cancel)

2.2 Non-Functional Requirement

2.2.1 Usability

- Display the status of the product is in stock or out of stock

- Fault tolerance: Backup data to cloud storage, in case of data loss

- Real-time error check: when user sign up or do work requiring lots of input fields, warn user until all input data is valid

- To pay, the customer will have 3 steps:

+ Click button “Buy”, the product will be added to cart

+ Click button “Cart”, it will show the product’s name, quantity, the total price

+ Click button “Pay”, it will display the customer's information input form, payment method

Trang 7

- Each periodic system upgrade will not take more than 30 minutes.

- Use camel case as the naming convention for variables, methods name

2.2.7 Portability

- The system can be deployed on various platforms: Linux, Windows, and macOS

- This website can be accessed via browsers: Chrome, Opera, Edge,

III Use case diagram

3.1 Account microservice

Use case diagram – Account microservice (authentication and authorization)

Trang 8

Use case diagram – Account microservice (account management)

Trang 9

Use case diagram – Order processing microservice

B.

System Architecture

System Architecture diagram

1 Design methodology: Heterogeneous pattern

Trang 10

Why: Tech-shop system consists of many features and

components, so that heterogenerous is required to combine multiple design patterns.

2 Overall system architecture: Client-server pattern

Why: Because this is an web-based online shopping system, the

number of end-users is huge Therefore, there will be many clients requesting and receiving service client-server is 

required.

3 Back-end architecture: Microservices pattern

Why: Online Tech-Shop has multiple feature groups so that I

decided to divide them into services and each service should be deployed independently of each other microservices pattern 

is a good choice.

4 Internal service architecture: Layered pattern

Why: The application can be scaled up

and out with layered pattern The

purpose of each layer is also presented

clearly through design, this simplifies

effort to understand the system of

developers.

C.

Detailed Design

I Database Design

Trang 11

1 Account microservice

Account microservice: ERD

2 Online catalog microservice

Online catalog microservice: ERD

3 Shopping cart microservice

Trang 12

Shopping cart microservice: ERD

4 Order processing microservice

Trang 13

Order processing microservice: ERD

II Class Diagram & Sequence Diagram

Trang 14

1 Account microservice

1.1 Log in

Log in: Screen Mockup Log in: Sequence Diagram Log in: Class Diagram

1.2 Register

Register – Step 1: Screen Mockup

Trang 15

Register – Step 2: Screen Mockup

Register – Step 3: Screen Mockup

Register: Sequence Diagram

Trang 16

Register: Class Diagram

1.3 Edit account information

Trang 17

Edit account information: Screen Mockup

Trang 18

Edit account information: Sequence Diagram

Edit account information: Class Diagram

1.4 Ban customer account, deactive staff account

Trang 19

Deactive account: Sequence Diagram

Deactive account: Class Diagram

1.5 View customer list, staff list

Trang 20

View account list: Screen Mockup

View account list: Sequence Diagram

Trang 21

View account list: Class Diagram

Trang 22

2 Online catalog microservice

2.1 View product list

View product list: Screen Mockup

View product list: Sequence Diagram

Trang 23

View product list: Class Diagram

2.2 Add product

Add product: Sequence Diagram

Trang 24

Add product: Class Diagram

2.3 Delete product

Delete product: Sequence Diagram

Trang 25

Delete product: Class Diagram

Trang 26

3 Shopping Cart microservice

3.1 Add to cart

Add to cart: Screen Mockup

Trang 27

Add to cart: Sequence Diagram

Add to cart: Class Diagram

Trang 28

3.2 Edit cart item quantity

Edit cart item: Sequence Diagram

Edit cart item: Class Diagram

Trang 29

3.3 View cart items

View cart items: Screen Mockup

Trang 30

View cart items: Sequence Diagram

View cart items: Class Diagram

Trang 31

4 Order processing microservice

4.1 Place an order

Place an order – Step 1: Screen Mockup

Trang 32

Place an order – Step 2: Screen Mockup

Trang 33

Place an order: Sequence Diagram

Place an order: Class Diagram

Trang 34

4.2 View order history

View order history: Screen Mockup

Ngày đăng: 01/02/2023, 10:19

TỪ KHÓA LIÊN QUAN

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN

w