← Back to Home

Week 11 - Node.js File System & HTTP

Reference files for the live-coding demos, in teaching order. Open any example and use View Source (right-click → View Page Source) to read the code — then rebuild it yourself.

▶  Open the Interactive Slides

1. File System Module

Reading, writing, and managing files

2. HTTP Module

Building HTTP servers from scratch

3. Routing

URL parsing and request routing

4. Static File Server

Serving HTML, CSS, JS files

Tip: don't copy-paste. Type the code yourself, break it on purpose, then fix it. Use DevTools (F12) to inspect what's happening.