commit 49c6678259f985a961ce13c107ded8d2164826b8 Author: JJ Date: Tue Jun 23 21:06:09 2026 +0000 Add index.js diff --git a/index.js b/index.js new file mode 100644 index 0000000..0ed2002 --- /dev/null +++ b/index.js @@ -0,0 +1,39 @@ +const http = require('http'); + +const PORT = 3000; + +// Create a server that sends a simple HTML page +const server = http.createServer((req, res) => { + res.statusCode = 200; + res.setHeader('Content-Type', 'text/html'); + + // Your HTML goes right here inside the backticks + res.end(` + + + + Node App + + + +

Hey, this is working!

+ + + `); +}); + +// Start the server +server.listen(PORT, () => { + console.log(`Server is running! Open your browser and go to: http://localhost:${PORT}`); +}); \ No newline at end of file