2.1 ExpressJS Reference

See expressjs.com

2.2 Install Express

npm install express --save

2.3 Require Express

@ app.js

var express = require('express');
var app = express();

2.4 Handle a request to the root route

@ app.js

app.get('/', function(request, response){
    response.send('<h1>Chat That Word</h1>')
});

App responds to a get request at the / route.

2.5 Listen for a request

@ app.js

var server = app.listen(3000, function(){
    console.log('Listening on port: 3000...')
})