When I run node index.js the browser loads only the html, disregarding javascript, images, and css , and if I try to access a link it shows a blank plage: node.js Cannot GET
You need show the error with your question and "/login.html" file?
Or quick-fix, you can change your code as below:
res.sendFile(__dirname + '/index.html', {});
to
res.render('index.html', { /*data*/ });
Here you have some code to tell your server what to when when the browser requests /
.
app.get('/'
You haven't written anything to tell it what to do when the browser requests /login.html
. Write something for that case.