Skip to content

Instantly share code, notes, and snippets.

@rasolofonirina
Last active March 25, 2022 12:44
Show Gist options
  • Save rasolofonirina/d4563e4ce316a55068340bcd765f8937 to your computer and use it in GitHub Desktop.
Save rasolofonirina/d4563e4ce316a55068340bcd765f8937 to your computer and use it in GitHub Desktop.
Basic server
const http = require('http')
const server = http.createServer((req, res) => {
res.writeHead(200)
res.end('Hello everybody !')
})
server.listen(8080)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment