TS

TypeScript — Advanced

AdvancedNode.js · 10 lessons

Master the type system, validate data at runtime, understand the Node.js event loop and streams, and structure, harden and ship production-grade TypeScript services.

Lessons

  1. 1Advanced Types: Mapped, Conditional & Template LiteralCompute new types from existing ones with keyof, mapped and conditional types.Solution4-question quiz
  2. 2Utility Types & the satisfies OperatorPartial, Pick, Omit, Record, ReturnType, Awaited — and safer config with satisfies.Solution4-question quiz
  3. 3Runtime Validation with ZodTypes disappear at runtime — validate external data and infer types from schemas.Solution4-question quiz
  4. 4The Event Loop, Concurrency & Worker ThreadsHow Node.js schedules work, why CPU-heavy code blocks it, and how to fix that.Solution4-question quiz
  5. 5Streams & Processing Large DataProcess files and network data piece by piece with streams and pipeline.Solution4-question quiz
  6. 6Application Architecture & Dependency InjectionSeparate routes, services and data access so code stays testable as it grows.Solution4-question quiz
  7. 7Authentication & AuthorizationHash passwords with scrypt, issue and verify JWTs, and protect Express routes with login and role checks.Solution4-question quiz
  8. 8Caching & Rate LimitingSpeed up repeated reads with a TTL cache and HTTP caching headers, and protect the API with rate limits.Solution4-question quiz
  9. 9Production: Build, Configure, Observe & DeployCompile for production, log properly, shut down gracefully and ship with Docker.Solution4-question quiz
  10. 10Project: Results Portal APIPut it all together: a PostgreSQL-backed API with validated config, login, roles, parent access, upserts, cached rankings and integration tests.Solution4-question quiz
Start with lesson 1 →
Ask AI