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' ) | |
// 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