res.app This property holds a reference to the instance of the Express application that is using the middleware. res
req.acceptsCharsets(charset [, ...]) Returns the first accepted charset of the specified character sets, based on the request’s Accept-Charset
res.json([body]) Sends a JSON response. This method is identical to res.send() with an object or array as the parameter. However
app.post(path, callback [, callback ...]) Routes HTTP POST requests to the specified path with the specified callback functions. For more information
Express uses the debug module internally to log information about route matches, middleware
req.originalUrl req.url is not a native Express property, it is inherited from Node’s
req.body Contains key-value pairs of data submitted in the request body. By default, it is undefined, and is populated when you
app.listen(port, [hostname], [backlog], [callback]) Binds and listens for connections on the specified host and port. This method is identical
Adding the capability to connect databases to Express apps is just a matter of loading an appropriate Node.js driver for the database in your app. This document briefly explains
Use the application generator tool, express-generator, to quickly create an application skeleton. Install express-generator
Page 1 of 11