1
How do I link an angled login application with the Node.JS and Express server. How do I test (pull) the application to the server.
The server is running normally on port 3000:
var express = require('express');
var bodyParser = require('body-parser');
var port = '3000';
var app = express();
app.listen(port);
app.get('/login.html', function(req, res){
var pessoa = {
nome:'Leandro',
país:'Brasil',
cpf:'457898'
};
res.json(pessoa);
});
Then @Felipe Duarte on Node appeared here that Bodyparser is deprecated and does not work.
– LeAndrade
I haven’t touched Ode in a while, but if I’m not mistaken it’s a Warning that doesn’t interrupt your code, I edited the answer to be clearer
– Felipe Duarte