Last active
April 5, 2021 13:13
-
-
Save elpuas/b3c6d1dd298b071426f195387f028901 to your computer and use it in GitHub Desktop.
This file contains hidden or 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' ) | |
// Create and start a server with the | |
// createServer method from http package | |
const server = http.createServer( ( req, res ) => { | |
console.log(req.url) | |
res.end( 'Hello node.js' ) | |
} ) | |
// start our server to start taking request | |
server.listen(3000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment