Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Hello World Node HTTP server for AWS User Data
const port = 3000
.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