A simple Node.js application that serves an external HTML file using the built-in File System (fs) module.
- Node.js 18+
npm installnpm startThen visit:
http://localhost:4000
The server will load and display the contents of index.html.
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A simple Node.js application that serves an external HTML file using the built-in File System (fs) module.
npm installnpm startThen visit:
http://localhost:4000
The server will load and display the contents of index.html.