I'm trying to upload an application in Node with mongoose
, (I'm studying, book MEAN home code) and it generates the following error when trying to start the file server.js
where I started my application in Node, see below.
Belowismyserver.jsfile.
var http = require('http');
var app = require('./config/express')();
require('./config/database.js')('mongodb://localhost/contatooh');
http.createServer(app).listen(app.get('port'),function(){
console.log('Express server executando na porta ' + app.get('port'));
});