Diagrams
Architecture, data, and the flows that connect your modules.
ArchitectureERDSequence: checkout (COD)Sequence: online paymentSequence: cancel an orderSequence: ship and trackOrder lifecycleCheckout flowPull request flowDeployment
Architecture
Modules and the two outside systems. Orders is the hub.
ERD
17 business tables; users, products and orders are the hubs.
Sequence diagram legend
Solid arrows (->>) are interface calls that wait for an answer; open arrows (-)) are events.
Sequence: checkout (COD)
Orders asks four modules for data, then fires OrderPlaced.
Sequence: online payment
The gateway reaches the app through a signed webhook.
Sequence: cancel an order
OrderCancelled restores stock and sends an email.
Sequence: ship and track
Shipping fires OrderShipped; the customer tracks the order.
Order lifecycle
Five statuses; updateStatus() rejects any other transition.
Checkout flow
Every branch of placing an order.
Pull request flow
How every change reaches develop and main.
Deployment
From laptop to the class demo.