Intermediate Pro Subscription Required

Full-Stack TypeScript: From Page to Production

Build everything a web app needs around its handlers, in strict TypeScript, with web standard APIs only. Render HTML safely, keep state in a pure reducer, handle real forms, sign sessions with cookies, store passwords properly, cache responses, validate configuration, wrap every route in a safety net, and finish with a complete app that logs in, authorises and creates parcels in the right order. Every lab runs the real compiler in your browser and sends real Request objects through your code, and every case is different for every learner.

4-6 hours of study Builds toward: Full-Stack Developer 8 modules

Practise on your own computer

The labs in the lessons run in your browser. To repeat them, go further and try the capstone on your own machine, set up the environment with these free guides:

  • A TypeScript lab: Node.js, the compiler and a test runner: Install Node.js and TypeScript, create a strict project, run the compiler and your code, and add a test that sends real Request objects through a handler, so you can repeat the course's cases and build your own typed API on your own computer.
  • A web deployment lab: Git, a free host and environment settings: Put a small web project online on a free hosting tier from your own computer: push it to a Git repository, connect a host, set configuration in the host's environment instead of the code, check a health endpoint, and know how to roll back.
  • A developer workstation: editor, Git, Python and Node: Install the free tools used by the web, backend, software-engineering, automation and DevOps courses, and create a GitHub account so you can write code, keep it under version control and run it on your own machine.

A framework hides the parts of a web app that decide whether it is safe, fast and reliable: how HTML is built, how a login is remembered, how a form is handled, how an error is shown. The developers who use frameworks well are the ones who know what the framework is doing for them, because that is where the surprises, and the security holes, are. This course builds those parts by hand, in small, graded steps, using only the web’s own standard APIs (Request, Response, URL, FormData, Headers and Web Crypto), so every idea carries to Astro, SvelteKit, Next.js, Hono, Express, Deno or any other.

This is the seventh season of Sabi Logistics’ story, and it follows TypeScript in Practice. The tracking API is typed; now it has to meet customers. Each case hands you a piece of the app with your own names, fields and rules, and the real TypeScript compiler in strict mode, plus real requests, check your work: the types must accept what is valid and refuse what is not, and your code must behave exactly like the reference on examples you can see and on batches you cannot. The first run downloads the compiler (several megabytes, then your browser remembers it).

What you will learn

  1. The safe page: HTML escaping, and the difference between text a user typed and markup you wrote.
  2. The reducer: state in one pure function, immutability, and the same object when nothing changed.
  3. The form: urlencoded bodies, server-side validation, keeping what the user typed and post-redirect-get.
  4. The session: cookie parsing, HMAC signatures, constant-time comparison and the cookie flags.
  5. The login: salted PBKDF2 hashes, identical failures, lockouts and what must never be stored.
  6. The cache: ETags, 304, cache-control, and keeping private data out of shared caches.
  7. The config: parsing the environment once, failing fast, typed readonly settings and redacted logs.
  8. The safety net: middleware, request ids, deliberate versus surprise errors and the order of composition.
  9. The launch: a complete app with login, authentication, authorisation and validation, in the right order.

A graded capstone and an exam finish the course. Free guides show how to set up TypeScript on your own computer and how to put a project online on free hosting.