Overview
Build a scalable, backend-first e-commerce system using Next.js and PostgreSQL. This course path emphasizes API design, service-layer architecture, data persistence, and refactoring for production readiness. You’ll work with realistic constraints and patterns used in real-world backend systems.
Syllabus
- Course 1: Backend Foundations: APIs, Utilities & Catalog Endpoint
- Course 2: Products API: CRUD, Search, and Pagination
- Course 3: Carts API: Line Items, Totals, and Inventory Snapshots
- Course 4: Orders API: Checkout Workflow and Order State Transitions
- Course 5: Tax API: Country-Based Rates and Checkout Snapshots
Courses
-
Set up a consistent API contract, reusable request/response helpers, and your first e-commerce endpoint. You'll learn the Next.js App Router API route model and establish the foundation that every other endpoint will reuse.
-
Expand the catalog API into a full CRUD surface: create products, fetch them by ID, update fields safely, and archive records. You'll also practice mapping validation failures and conflicts to correct HTTP status codes.
-
Introduce shopping carts and cart items. You'll create carts, add and update items, and return computed totals. This course establishes the data flow that powers checkout in the final course.
-
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.
-
Make tax a first-class part of your e-commerce backend. You'll add a dedicated tax rates table, expose a small admin-style Tax Rates API, and let carts choose a tax country so totals update in real time.