var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {
'Content-Type': 'text/plain'
});
res.end('Hello World\n');
}).listen(1337);
console.log('Server running at http://127.0.0.1:1337/');
module.exports = function(app) {
app.get('/', function(req, res) {
res.render('index');
});
// Прочие маршруты
}
require('./routes')(app);
"scripts": {
"preinstall": "npm i -g grunt-cli && npm i grunt && grunt db:migrate"
}