What is Middleware in Express JS? | Node.js Tutorials for Beginners

What is Middleware in Express JS? | Node.js Tutorials for Beginners

Dave Gray

2 года назад

39,674 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@Pareshbpatel
@Pareshbpatel - 05.10.2023 12:56

A comprehensive tutorial on Middleware in Express, beautifully presented. Thanks, Dave

{2023-10-05}: implemented

Ответить
@kkomax7
@kkomax7 - 01.09.2023 09:53

This tut hasn't been liked enough.
I usually don't comment to thank, but thanks Dave

Ответить
@DrCash7
@DrCash7 - 31.08.2023 10:37

Ona managed vps and keep running into cors error when my front end loads and talks to the backend. I've added the cors settings after the installed apps and still running into cors errors. Need halp

Ответить
@ofofononoumoren
@ofofononoumoren - 20.08.2023 08:01

Absolutely great video. Just for improvement purpose, it's best to import logger as a single value (const logger = require('./destination')) rather than as an object with named properties since that not how it was exported in the logEvents file. Even if, it doesn't matter anyways. Thanks for this very elaborate module, Dave.

Ответить
@soudaminipanda
@soudaminipanda - 17.07.2023 23:57

Very nice tutorial. Very easy to understand

Ответить
@VeerapatBoonkerd
@VeerapatBoonkerd - 27.06.2023 05:22

Very nice explanation. Step by step. Easy to follow. Thx

Ответить
@loikvokhidov7688
@loikvokhidov7688 - 06.03.2023 11:02

algorithm should recommend these videos to all the people who want to learn NodeJS.

Ответить
@bhargavs5180
@bhargavs5180 - 11.12.2022 08:06

when a new Error("Not allowed by CORS") is created, does the app.use(errorHandler) receive it automatically, because it has a first arguement as err?

Ответить
@vigneshb5717
@vigneshb5717 - 17.11.2022 21:31

so far ok completed the second video

Ответить
@NaviaryMusic
@NaviaryMusic - 09.11.2022 12:39

Thanks Dave!! My websites coming along nicely!

Ответить
@denmccormik7654
@denmccormik7654 - 21.10.2022 14:40

Thank you for the lesson. Do you know why browser doesn't allow to fetch from console from it's starting window (when url is empty, when we just opened the browser without starter page)? I thought that origin just will be undefined but everything would work.

Ответить
@brandonjoaocastillo7490
@brandonjoaocastillo7490 - 17.10.2022 07:12

Why you dont use next() in the errorHandler function? you did it in logger, its because is the last middleware or something like that?

Ответить
@AuxiliaryOfficial
@AuxiliaryOfficial - 30.09.2022 08:54

im looking for your typescript tutorial

Ответить
@shineLouisShine
@shineLouisShine - 29.08.2022 17:11

Thank you very much for this lesson.

With all due respect. and I do sincerely and deeply have A LOT of respect for everything you are doing here:
For me, the last part where you immediately say to "Like" the video is a bit too aggressive,
Without a single second of silence to breathe, to process, and to execute the "Like" on our own -
Without you asking us to do so, but just because of a natural sense of gratitude.

I feel less sympathy for this kind of... "strategy"(?), because...
Whoever likes the video - will give them a "Like",
And whoever likes to subscribe - will certainly subscribe.

Furthermore, think of people who already subscribed to your channel,
And yet don't have any other choice but to listen to this request in the end of each and every video,
Regardless of the fact that they already did it.

My suggestion (/request) :
Give your viewers a little bit more credit 😌

(in addition, there is actually a graphic invitation to subscribe during the videos already...)

Ответить
@cyberpaimpol
@cyberpaimpol - 26.08.2022 22:15

Super tutorial, progression is smooth and so interesting, thx !

Ответить
@unique3345
@unique3345 - 09.08.2022 18:30

A very useful tutorial!!!!

Ответить
@MohammadBarghamadii
@MohammadBarghamadii - 05.08.2022 10:20

Thank you so much

Ответить
@sdfsdfsdffdsfsdfsd123
@sdfsdfsdffdsfsdfsd123 - 01.08.2022 00:43

thank you.

Ответить
@sonamohialdin3376
@sonamohialdin3376 - 30.06.2022 14:03

Amazing tutorial thank you

Ответить
@keithbacalso9433
@keithbacalso9433 - 13.06.2022 04:30

Even I did not removed the `.css` I can still access it in the browser.... ? why?

Ответить
@alirezahekmati7632
@alirezahekmati7632 - 11.04.2022 07:00

🚀

Ответить
@viciousinsights6902
@viciousinsights6902 - 08.04.2022 18:21

This has been truly enlightening, this series has helped me tremendously with the aspects of node & expressjs I had been struggling with. I look forward to learning more from you in the future!

Ответить
@Alibeee87
@Alibeee87 - 29.03.2022 03:40

Thank you for all your help! I appreciate you mentioning keyboard commands as well, that's fantastic info for a beginner!

Ответить
@ramziosta
@ramziosta - 27.03.2022 00:40

I got an error optionsSuccessStatus undefined , so I declared let optionsSuccessStatus; outside corsOptions, and that removed the error and got everything to work fine. is that an allowed hack?

Ответить
@tabliqatchi6696
@tabliqatchi6696 - 16.03.2022 13:36

This is gem people!

Ответить
@juangomez874
@juangomez874 - 24.02.2022 04:50

Dave, you are my new hero. Thanks a lot for these videos, they had helped me a lot. Very very clear. Keep up the good job.

Ответить
@moiraleon8744
@moiraleon8744 - 15.01.2022 01:59

Quick question, what extension do you have that allows your file names in your Explorer tab to have different icons and colors?

Ответить
@nataliasenyk5946
@nataliasenyk5946 - 30.11.2021 17:01

great tutorial! Coming from the frontend world, it really helps me to undestand how the backend works!

Ответить
@DeepakGupta-hj2dv
@DeepakGupta-hj2dv - 18.09.2021 11:56

Can you please make a video node JS microservices crash course

Ответить
@ahmad-murery
@ahmad-murery - 17.09.2021 17:54

Well explained Dave,
Middleware can be very handy to allow only authentic users to access certain pages,

I recently started using the Rest Client extension for VS Code instead of Postman, I found it easier to work with as I don't have to leave VS Code to test my API, it also let me have all my requests in a plain text file that can be included side by side with the app files.

Thanks Dave 🚀

Ответить