Assignment 7 — Node.js Server

A Simple Server
Built with Node.js

No frameworks. Just the built-in http, fs, and path modules — serving HTML files and logging every request.

🌐

http Module

The built-in http.createServer() handles every incoming request and routes it to the right HTML file.

📄

fs Module

fs.readFile() reads HTML and CSS files from the public/ folder and streams them to the browser.

📋

Request Logging

Every request is logged to the console and appended to requests.log with a full ISO timestamp.

🔄

nodemon

Run npm start to launch the server with nodemon, which auto-restarts on every file save.