Last active
February 15, 2019 03:25
-
-
Save conanak99/0de790ad5363ea5c9b178325d2f90b81 to your computer and use it in GitHub Desktop.
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 port = 3000 | |
const server = http.createServer((request, response) => { | |
console.log(request.url) | |
response.end('Hello from ToiDiCodeDao') | |
}) | |
server.listen(port, (err) => { | |
if (err) { | |
return console.log('something bad happened', err) | |
} | |
console.log(`Server is listening on ${port}`) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment