Skip to main content
100%

Document

✓ Published0🌍 Public
Aabonello
Last edited Mar 18, 2026
Created on Mar 18, 2026

This example shows a minimal HTTP server that serves a single static HTML page titled “Document.” The Node.js code uses the `http` module to create a server on port 3000, responding to requests by reading `index.html` with `fs.readFile`. If the file is found, it writes the HTML content with a 200 status; otherwise, it returns a 404 error. The served page contains only a heading, “Server,” demonstrating basic file serving without any client-side visualization libraries or data rendering.

AI-generated description

Similar vizzes