6.11 Summary
In this chapter, you learned about Express, the most widely used web application framework for Node.js. Unlike the http module of Node.js, it’s much more convenient by either completely relieving you of numerous tasks or at least making them much easier. Express is a lightweight framework that is well suited for use in both small- and large-scale applications.
The Express framework provides a router that can be used to define combinations of http methods and URL paths and then bind callback functions to them. Routes in Express can have static and dynamic parts.
The middleware components provide you with a flexible plug-in system. A middleware refers to a function that is located between the incoming request and the outgoing response. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access