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);
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);
Waiting for the 4th lesson :)
ResponderExcluirYou forgot to explain that is necessary install npm and install the Express module using the command "npm install express"
ResponderExcluir