CHAPTER 4
Parameters and Routing
To review, the typical structure of an Express.js app (which is usually a server.js orapp.js file) roughly consists of these parts, in the order shown:
- Dependencies: A set of statements to import dependencies
- Instantiations: A set of statements to create objects
- Configurations: A set of statements to configure system and custom settings
- Middleware: A set of statements that is executed for every incoming request
- Routes: A set of statements that defines server routes, endpoints, and pages
- Bootup: A set of statements that starts the server and makes it listen on a specific port for incoming requests
This chapter covers ...
Get Express.js Deep API Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.