app.listen(port, [hostname], [backlog], [callback]) Binds and listens for connections on the specified host and port. This method is identical
To serve static files such as images, CSS files, and JavaScript files, use the express.static built-in middleware function in Express. Pass
app.mountpath The app.mountpath property contains one or more path patterns on which a sub-app was mounted.
req.body Contains key-value pairs of data submitted in the request body. By default, it is undefined, and is populated when you
req.acceptsLanguages(lang [, ...]) Returns the first accepted language of the specified languages, based on the request’s Accept-Language
express.static(root, [options]) This is the only built-in middleware function in Express. It serves static files and is based on
Express uses the debug module internally to log information about route matches, middleware
res.json([body]) Sends a JSON response. This method is identical to res.send() with an object or array as the parameter. However
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
app.engine(ext, callback) Registers the given template engine callback as ext. By
Page 2 of 11