Var express=the require (' express ');
Var bodyParser=the require (' body parser - ');
Var router=the require ("./router. Js');
Var app=express ();
App. Use ('/node_modules, express the static ('./node_modules'));
App. Use ('/public, express the static ('./public '));
App engine (' HTML ', the require (' express - art - the template '));
App. Use (bodyParser. Urlencoded ({extended: false}));
App. Use (bodyParser. Json ());
App. Use (router);
App. Listen (909, function () {
The console. The log (' running server at port 909 ');
});
Web form elements are as follows: