Create the following file:

//filename: welcome-to-node/done/hello-world-server.js
var http = require('http');

var server = http.createServer(function(request, response){
  response.write('Welcome to Intro to Node.js!');
  response.end();
});

server.listen(8080, function(){
  console.log('server listening at http://localhost:8080/');
});

Run it from the terminal (command line):

$ node http-server.js

Point your browser to http://localhost:8080/

Create the following file: //filename: welcome-to-node/done/hello-world-server.js var http = require('http'); var server = http.createServer(function(request, response){ response.write('Welcome to Intro to Node.js!'); response.end(); }); server.listen(8080, function(){ console.log('server listening at http://localhost:8080/'); }); Run it from the terminal (command line): $ node http-server.js Point your browser to http://localhost:8080/ Help people get unstuck. go 'til ~5min in