diff --git a/index.js b/index.js new file mode 100644 index 0000000..605b570 --- /dev/null +++ b/index.js @@ -0,0 +1,39 @@ +const http = require('http'); + +const PORT = 3010; + +// 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!3

+ + + `); +}); + +// 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