Docs
/
Node Express
Node.js & Express — Learning Roadmap
Phase 1: Node.js Foundations (Topics 01–05)
| # | Topic | Key Concepts |
|---|---|---|
| 01 | Node.js Runtime & Modules | Event loop, CommonJS vs ESM, built-in modules, process, global |
| 02 | File System & Path | fs/promises, reading/writing files, path manipulation, streams |
| 03 | Events & Streams | EventEmitter, Readable/Writable/Transform streams, piping |
| 04 | HTTP Module (No Framework) | http.createServer, request/response, routing, serving files |
| 05 | Async Patterns & Error Handling | Callbacks, Promises, async/await, error-first convention, unhandled rejections |
Phase 2: Express Core (Topics 06–10)
| # | Topic | Key Concepts |
|---|---|---|
| 06 | Express Setup & Basics | express(), app.listen, routing, req/res, query/params, status codes |
| 07 | Middleware | Built-in, custom, error-handling, third-party (cors, helmet, morgan) |
| 08 | Routing & Router | express.Router, route grouping, param middleware, route chaining |
| 09 | Request Handling | Body parsing, file uploads (multer), validation (zod), content types |
| 10 | Response Patterns | JSON, HTML, files, streams, redirects, content negotiation |
Phase 3: API Patterns (Topics 11–15)
| # | Topic | Key Concepts |
|---|---|---|
| 11 | REST API Design | Resource naming, CRUD, HTTP methods, status codes, pagination, filtering |
| 12 | Authentication & Authorization | JWT, bcrypt, sessions, passport, role-based access, refresh tokens |
| 13 | Error Handling & Logging | Centralized error handler, custom errors, winston/pino, request logging |
| 14 | Input Validation & Sanitization | Zod schemas, express-validator, sanitization, request DTOs |
| 15 | Database Integration Patterns | Connection pooling, repository pattern, transactions, migrations |
Phase 4: Advanced (Topics 16–20)
| # | Topic | Key Concepts |
|---|---|---|
| 16 | Testing (Unit & Integration) | Vitest/Jest, supertest, mocking, test database, fixtures |
| 17 | Security Best Practices | Helmet, rate limiting, CORS, CSRF, SQL injection, XSS prevention |
| 18 | Performance & Caching | Compression, ETags, Redis caching, clustering, load balancing |
| 19 | WebSockets & Real-Time | Socket.io, ws library, rooms/namespaces, broadcasting, heartbeat |
| 20 | Project Structure & Deployment | Folder conventions, env config, Docker, PM2, health checks, graceful shutdown |
Format: Each topic has README.md (concepts) + .ts file (commented examples).
All code uses TypeScript with ts-node/tsx for execution.