Skip to content

Instantly share code, notes, and snippets.

@franrios
Created March 25, 2016 19:25
Show Gist options
  • Save franrios/6f058549d28eb0f288c5 to your computer and use it in GitHub Desktop.
Save franrios/6f058549d28eb0f288c5 to your computer and use it in GitHub Desktop.
server.js
var http = require('http')
var server = http.createServer().listen(8080, function () {
console.log('Listening on port 8080...')
})
server.on('request', function (req, res) {
res.write('Hello from Node.js fundamentals!\n')
res.end()
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment