O'Reilly logo

Express.js Deep API Reference by Azat Mardan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 4

image

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:

  1. Dependencies: A set of statements to import dependencies
  2. Instantiations: A set of statements to create objects
  3. Configurations: A set of statements to configure system and custom settings
  4. Middleware: A set of statements that is executed for every incoming request
  5. Routes: A set of statements that defines server routes, endpoints, and pages
  6. Bootup: A set of statements that starts the server and makes it listen on a specific port for incoming requests

This chapter covers ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required