Skip to content

Instantly share code, notes, and snippets.

View kitsune7's full-sized avatar
🦊
Having fun programming ^_^

Christopher Bradshaw kitsune7

🦊
Having fun programming ^_^
View GitHub Profile
const http = require('http')
const port = process.env.PORT || 8080
http.createServer(function (request, response) {
response.writeHead(200, {'Content-Type': 'text/plain'})
response.end('Hello World\n')
}).listen(port)
console.log(`Server running at http://localhost:/${port}`)