Solving third lesson

'use strict';

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

app.get('/', function(req, res){
    res.send('Hello www world.');
});

var server = app.listen(3000);
console.log('Servidor Express iniciado na porta %s', server.address().port);



Comentários

  1. You forgot to explain that is necessary install npm and install the Express module using the command "npm install express"

    ResponderExcluir

Postar um comentário