Express Middleware in Node.js

Опубликовано: 15 Февраль 2021
на канале: Hey Node
819
11

See the written version of this tutorial for links to prerequisites and related tutorials:
https://heynode.com/tutorial/express-...

Express middleware is code written that executes during a request/response cycle in Node.js. It's commonly used to add functionality, or to provide features to Express like user authentication or caching to your application. Express itself is essentially a collection of "middlewares". Understanding how middleware works, how to use them, and how to create your own is an important part of working with Express.

By the end of this tutorial, you should be able to:

Understand how Node.js Express middleware works
Understand the purpose of Express middleware
Know how to add middleware to your server
Create your own middleware to add custom functionality to Express

Heynode.com: The best online Node.js courses and tutorials to help you solve hard problems fast.