Case study · Systems analysis and design

Analysis and design of an online shoe shop

A complete specification and design of a sales system for a shoe shop, from business requirements, use cases and UML diagrams to the database and screens.

Tools
UML, ERD, Draw.io
Scope
7 use case groups
Role
Analysis and design
Two mock-up screens of the Long’s Store shoe website: the product page with four shoes and the staff account management screen
Long’s Store mock-ups (in Vietnamese): the product page and account management.

The question, the method and the result

  • The question

    A shop wants to sell shoes online: customers order without an account, staff handle orders and delivery, an administrator manages staff accounts.

  • The method

    Specified functional and non-functional requirements, then built use case, class, sequence, activity, component and deployment diagrams.

  • The result

    An entity relationship model, screen designs and a document pack developers could start from.

Overall use case diagram with customer, staff and administrator

Inside the analysis

The problem

The system supports a shop selling shoes online. It must run reliably on the internet, be easy to use and work across browsers and devices.

  • The administrator creates, edits, deletes and issues staff accounts.
  • Customers browse and search products in stock and order without logging in; customer details are kept with the order.
  • Staff log in to handle orders: search, confirm and track orders that are unconfirmed, in delivery, delivered or cancelled.
  • Two ways to receive goods: pick up at the shop or delivery to the customer’s address.
  • Staff add new products, remove sold-out ones and update product details.
  • Customers are split into first-time and returning buyers to plan care and sales.

Functional requirements

  • Account management: the administrator creates, edits and deletes staff accounts.
  • Log in: staff and the administrator log in to use the functions they are granted.
  • Ordering: customers find products, see price and stock, then place an order with delivery details.
  • Order management: staff confirm, update, search and classify orders.
  • Delivery tracking: receipts and invoices for both delivery methods.
  • Product management: add products, remove sold-out ones, update stock when goods arrive.
  • Customer management: view details, group loyal and new customers, list who needs follow-up.

Non-functional requirements

  • Operation: easy to integrate with other systems, works in every browser, technical support on call at roll-out.
  • Performance: responses under 3 seconds, up to 500 concurrent users, available 24 hours a day, 365 days a year.
  • Security: only the administrator configures the system and permissions; staff accounts are protected; firewall and malware protection.
  • Local and legal: currency in VND; customer personal data handled under Article 69 of Decree 52/2013/ND-CP.

Actors and use cases

Three actors: the customer finds, views and buys products; sales staff advise and look after customers and manage orders, delivery and products; the administrator manages staff accounts and configures the system.

  • R1 Account management: create an account, delete an account.
  • R2 Log in: shop manager account, staff account.
  • R3 Ordering: view product details, search, buy.
  • R4 Order management: search, update, classify orders.
  • R5 Delivery tracking: deliver by order, issue a receipt, issue an invoice.
  • R6 Product management: add, update, delete products.
  • R7 Customer management: view details, follow up, classify customers.
Overall use case diagram with three actors and seven function groups
Overall use case diagram (in Vietnamese).

Class and sequence diagrams

The class diagram holds Person (the parent of Customer), Staff, Account, Order, Invoice and Product, with their attributes, methods and relations: one customer places many orders, one order holds many products, each order has one invoice.

Every function has its own sequence and activity diagrams. The example below is account management: search, add, update and delete, with a validation step before saving.

Class diagram with Person, Customer, Staff, Account, Order, Invoice and Product
Class diagram.
Sequence diagram for account management between administrator, management page, controller and account
Sequence diagram: account management.

System design

Manager, staff and customer machines connect over TCP/IP to the application server, which connects to the database server.

Deployment diagram with three client machines, an application server and a database server
Deployment diagram.

Screen design

Mock-up screens for the main flows, used to check the requirements: customers browse and order, staff create and track orders, the administrator manages accounts.

Product detail page with the shoe photo, price, quantity and add to cart button
Product detail.
New order screen with the items and an order summary
Creating a new order.
Order detail screen with payment and delivery status and customer details
Order detail and status.
Staff account management screen for the administrator
Account management for the administrator.

Database design

The class diagram was turned into an entity relationship (ER) model as the basis for the tables.

Entity relationship model of the sales system
Entity relationship model.