This is essentially going to be the simplest Express app you can create. It is a single file app — not what you’d get if you use the
Express uses the debug module internally to log information about route matches, middleware
router.route(path) Returns an instance of a single route which you can then use to handle HTTP verbs with optional middleware. Use router
req.acceptsLanguages(lang [, ...]) Returns the first accepted language of the specified languages, based on the request’s Accept-Language
req.body Contains key-value pairs of data submitted in the request body. By default, it is undefined, and is populated when you
req.signedCookies When using cookie-parser middleware
To serve static files such as images, CSS files, and JavaScript files, use the express.static built-in middleware function in Express. Pass
req.baseUrl The URL path on which a router instance was mounted. The req.baseUrl property is similar
app.listen(port, [hostname], [backlog], [callback]) Binds and listens for connections on the specified host and port. This method is identical
app.param([name], callback) Add callback triggers to route parameters, where name is the name of the parameter or an array of them
Page 2 of 11