Finish the backend with checkout and orders. You'll convert carts into orders transactionally and implement order listing plus state transitions (pay/cancel). The last unit aligns the code with the full course outcome.
Overview
Syllabus
- Unit 1: From Cart to Order
- Observe checkout creating an order
- Implement minimal transactional checkout
- Validate and decrement inventory during checkout
- Compute tax + totals for the created order
- Unit 2: Listing and Fetching Orders
- Observe list + detail order reads
- Implement GET /api/orders with pagination
- Implement GET /api/orders/:id detail endpoint
- Implement listOrdersService + getOrderService
- Unit 3: Paying and Cancelling Orders
- Observe pay/cancel transitions
- Implement payOrderService transition
- Implement cancelOrderService transition
- Wire pay/cancel routes with validation + envelopes