Slide 6
Slide 6 text
Hello World
1. Create app.js.
var express = require('express'); // load the Express module
var app = express(); // create a new Express app
// Respond to requests for / with “Hello World!”.
app.get('/', function (request, response) {
response.send('Hello World!');
});
// Start a server with the Express app on port 3,000.
var server = app.listen(3000, function () {
console.log('Example app listening at http://localhost:3000/');
});