Skip to content

Instantly share code, notes, and snippets.

@azat-co
Created April 6, 2017 16:59
Show Gist options
  • Save azat-co/5c035301e13037e52cd689205b08c121 to your computer and use it in GitHub Desktop.
Save azat-co/5c035301e13037e52cd689205b08c121 to your computer and use it in GitHub Desktop.
Hello World Node HTTP server for AWS User Data
const port = 3000
require('http')
.createServer((req, res) => {
console.log('url:', req.url)
res.end('hello world')
})
.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