res.end([data] [, encoding]) Ends the response process. This method actually comes from Node core, specifically the
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.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
app.post(path, callback [, callback ...]) Routes HTTP POST requests to the specified path with the specified callback functions. For more information
Use the application generator tool, express-generator, to quickly create an application skeleton. Install express-generator
req.originalUrl req.url is not a native Express property, it is inherited from Node’s
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
res.json([body]) Sends a JSON response. This method is identical to res.send() with an object or array as the parameter. However
To serve static files such as images, CSS files, and JavaScript files, use the express.static built-in middleware function in Express. Pass
Page 1 of 11