TS
TypeScript — Intermediate
Model real-world data precisely with union types and generics, organise code with classes, handle asynchronous work and errors properly, and build and test your first HTTP server on Node.js.
Lessons
- 1Union Types & NarrowingValues that can be one of several types, and how TypeScript narrows them safely.
- 2GenericsWrite functions and types that work with any type while staying type-safe.
- 3Classes & Object-Oriented DesignConstructors, access modifiers, interfaces, inheritance and abstract classes.
- 4Asynchronous Code: Promises & async/awaitHandle slow operations (network, files, timers) without blocking Node.js.
- 5Error Handlingtry/catch with unknown errors, custom error classes and the Result pattern.
- 6Building an HTTP ServerCreate a JSON API with Node's built-in http module — routes, body parsing, status codes.
- 7Testing with node:testWrite automated tests with Node's built-in test runner and assertions.
- 8REST APIs with ExpressBuild a typed CRUD API with Express 5: routes, params, JSON bodies, type guards, status codes, error middleware and HTTP tests.
- 9PostgreSQL with node-postgresConnect with a pool, run parameterised queries with typed rows, and keep related changes atomic with transactions.