¡Esta es una revisión vieja del documento!
Con express:
var bodyParser = require('body-parser');
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({extended:false}));
To mantain the server up: npm install nodemon -g. Now the app.js and all its folder will be refreshed without needing to restart.
$ nodemon
npm install ejs –save
res.render('index', {
title: 'Customers'
});
...
<h1><%= title %></h1>
Header
<html> <header></header> <body>...
Footer
</body></html>
Body
<% include partials/header %> <h1>... <% include partials/footer %>
<ul>
<% users.forEach(function(uer){ %>
<li> <%= user.firstName %> </li>
<% }) %>
</ul>