Last active
March 25, 2022 12:43
-
-
Save rasolofonirina/c0c34e3af2b31f69990953363fb09382 to your computer and use it in GitHub Desktop.
Basic server with HTML
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const http = require('http') | |
const server = http.createServer((req, res) => { | |
res.writeHead(200, {"Content-Type": "text/html"}) | |
res.end('<h1>Hi everybody !</h1>') | |
}) | |
server.listen(8080) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment