That mean book, see 7788, with the general, now will be the same as the deepening of memory.
Exprss. JS East, there are ready-made Books Online:
The first phase of the code test:
varExpress = require (' Express ');varApp =Express ();varHandlebars = require (' Express3-handlebars ')). Create ({defaultlayout:' Main '}); App.engine (' Handlebars ', Handlebars.engine); App.set (' View engine ', ' handlebars '); App.set (' Port ', Process.env.PORT | | 3000); App.use (Express.static (__dirname+ '/public '));varFortunes = [ "Conquer your fears or they would conquer you.", "Rivers need springs.", "Do not fear, what are you don ' t know.", "You'll have a pleasant surprise.", "Whenever possible, keep it simple.",];app.get (‘/‘,function(req, res) {Res.render (' Home ');}); App.get ('/about ',function(req, res) {varRandomfortune =Fortunes[math.floor (Math.random ()*Fortunes.length)]; Res.render (' About ', {fortune:randomfortune});}); App.use (function(req, res) {Res.status (404); Res.render (' 404 ');}); App.use (function(Err, req, res, next) {Console.error (err.stack); Res.status (500); Res.render (' 500 ');}); App.listen (App.get (' Port '),function() {Console.log (' Express started on http://localhost: ' +App.get (' Port ') + '; Press ctrl-c teminate. ');});
Book and output:
EXPRESS. JS to start again