Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.