TypeScript
Series
20 articles on Node.js and Express, always current, pulled live from GitHub.
Getting Started with TypeScript & Express
Set up a TypeScript Express project from scratch — tsconfig, ts-node, middleware, routing, and the Request/Response objects explained.
All Series Articles
Integrating MongoDB with TypeScript Express
Connect MongoDB to your Express app using Mongoose — models, schemas, and full CRUD operations with TypeScript.
Express Error Handling in TypeScript
Build robust error handling — error middleware, custom exception classes, and graceful error responses.
Express Error Handling Middleware Deep Dive
Chaining error handlers, async errors, and centralised error responses in a production Express API.
Custom Exceptions for Better Express APIs
Design custom exception hierarchies in TypeScript to produce consistent, structured API error responses.
Advanced Error Handling Patterns in Express
Production-grade error handling — validation errors, 404 handlers, async wrappers, and unhandled rejection guards.
The Basics of Node.js with TypeScript
Explore Node.js fundamentals — modules, the global object, process arguments, and the file system with TypeScript.
The Synchronous Nature of EventEmitter
Understand how EventEmitter works synchronously under the hood and powers event-driven programming.
Buffers Demystified in Node.js
Master Buffers — Node.js's tool for handling raw binary data. Allocation, encoding, and real-world use cases.
Understanding Readable Streams in Node.js
Dive into Readable Streams and learn to consume data efficiently without loading everything into memory.
Mastering Writable Streams in Node.js
Explore Writable Streams — backpressure handling and piping for smooth data pipelines.
Sending HTTP Requests in Node.js
Make HTTP requests from Node.js using the built-in http/https modules — GET, POST, and handling responses.
Creating an HTTP Server in Node.js
Build a raw HTTP server from scratch, handle routing manually, and understand the request/response lifecycle.
Implementing HTTPS with Your Own OpenSSL Certificate
Secure your Node.js server with HTTPS using a self-signed OpenSSL certificate — step by step.
Navigating the Node.js Event Loop
Deep understanding of the Event Loop — phases, microtasks, macrotasks, and how async code really runs.
Creating Child Processes in Node.js
Spawn child processes with spawn, exec, fork — parallelise CPU-bound work and communicate between processes.
Node.js Cluster: Sharing Workload Between Processes
Use the cluster module for multi-core CPUs — master/worker architecture and zero-downtime restarts.
HTTP/2 in Node.js
Implement HTTP/2 — server push, multiplexing, header compression, and why it matters for performance.
Worker Threads in Node.js
Offload CPU-intensive work to Worker Threads — SharedArrayBuffer, message passing, and thread pools.
Performance Hooks in Node.js
Measure and profile your Node.js applications using the built-in perf_hooks API — marks, measures, Observer.