Build a storefront backend
This track is a project, not a tour. Across seven chapters you build a small e-commerce storefront — a products catalog, a cart, a durable checkout, a shipping webhook, and a storefront page — in one workspace that grows chapter by chapter. It is the same spine the NetScript playground runs, re-themed as a shop, so every pattern you learn here is one the framework's own example app uses in anger.
The differentiator this track proves is one typed contract, honored from the database to the button: the oRPC schema you write once is the same object the server handler validates against, the same one a page's query and checkout mutation are typed from, so a wrong field is a compile error, not a 2 a.m. incident. What this replaces: the hand-maintained REST-plus-fetch-wrapper-plus-DTO stack where the client's idea of a cart and the server's idea of a cart are two files that drift until production catches them apart.
- 1 · Scaffold
- 2 · Catalog service
- 3 · Cart contracts
- 4 · Checkout saga
- 5 · Shipping webhook
- 6 · Storefront UI
- 7 · Deploy
What you will build
A working storefront backend called my-shop/: a typed products catalog service backed by
Postgres, a cart domain defined contract-first, a durable checkout saga that survives restarts
and compensates on failure, and an HMAC-verified shipping webhook that hands inbound provider events
to a background job. By the last chapter the whole thing runs on your machine under one orchestrator,
visible in a single dashboard.
The arc is deliberate. It teaches NetScript's central opinion — the oRPC contract is the single source of truth — and then shows what that buys you once the happy path needs to survive money changing hands: durable workflows and verified webhooks make checkout reliable instead of hopeful.
The shape of the app
Who this is for
You are comfortable with TypeScript and have used Deno at least a little. You do not need prior NetScript experience — chapter 1 starts from an empty folder — but if you have never run the framework locally, skim the Quickstart first; it covers the same scaffold at a gentler pace. This track moves faster and stays on the storefront domain the whole way.
You also do not need to read the whole framework before you start. Each chapter introduces exactly one new capability, grounds it in real running code, and proves it with a command whose output you can check.
The seven chapters
Start the build
After this track, keep building in Build › Services & SDK — the guides and recipes there pick up where these chapters stop.