Skip to content

Instantly share code, notes, and snippets.

@OussaZaki
Created June 13, 2018 18:09
Show Gist options
  • Save OussaZaki/f496521185b6f2770bdff61076ccde79 to your computer and use it in GitHub Desktop.
Save OussaZaki/f496521185b6f2770bdff61076ccde79 to your computer and use it in GitHub Desktop.
const port = 3000
require('http')
.createServer((req, res) => {
console.log('url:', req.url)
res.end('hello smartcoding')
})
.listen(port, (error)=>{
console.log(`server is running on ${port}`)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment