Learn Express Middleware In 14 Minutes

🚨 IMPORTANT:
1 Year Free Hosting: www.atlantic.net/webdevsimpli...
Use code KYLE for an additional $50
Whether you know it or not you have written middleware if you have done any work with express. Middleware is simply any function that occurs between the time the server receives a request and the time a server sends a response. Understanding exactly how to use middleware effectively, though, can be challenging which is why in this video I cover everything you need to know about middleware in express. I even cover the most common problems I see with middleware at the end of the video.
📚 Materials/References:
Middleware Blog Article: blog.webdevsimplified.com/201...
🧠 Concepts Covered:
- What express middleware is
- How to define middleware
- How middleware executes
- The biggest middleware problems
🌎 Find Me Here:
My Blog: blog.webdevsimplified.com
My Courses: courses.webdevsimplified.com
Patreon: / webdevsimplified
Twitter: / devsimplified
Discord: / discord
GitHub: github.com/WebDevSimplified
CodePen: codepen.io/WebDevSimplified
#ExpressMiddleware #WDS #Nodejs

Пікірлер: 449

  • @daemyno
    @daemyno4 жыл бұрын

    Node.Js Senior developer here, And I'm a subscribed in you channel for two main reasons 1 - Your way to simplify things, even though I know most of them all, I still enjoy watching you explaining them. 2 - No matter how experienced you are, you still can learn some useful tricks from others even for basics. Keep it up man :)

  • @curiosdevcookie

    @curiosdevcookie

    4 жыл бұрын

    You, too. That’s a healthy attitude 🌸

  • @izaakchater9165

    @izaakchater9165

    3 жыл бұрын

    I get the vibe that you would be great to work under for anyone whose genuinely into the craft.

  • @yasasvyguntur4109

    @yasasvyguntur4109

    3 жыл бұрын

    Hey I need some assistance in node js development. Since you are a senior developer would you help me out please?

  • @anjobihis2052

    @anjobihis2052

    3 жыл бұрын

    Wow, great mindset actually. Nice

  • @itproguide

    @itproguide

    3 жыл бұрын

    Exactly what I need...thanks bro

  • @jimmymac601
    @jimmymac6014 жыл бұрын

    It is ridiculous how good an instructor you are.

  • @WebDevSimplified

    @WebDevSimplified

    4 жыл бұрын

    Thank you!

  • @bobweee888

    @bobweee888

    3 жыл бұрын

    yeah he doesnt just try sound intelligent. I feel like a lot of people want to be perceived as genius so when they apply for work or get invited to convetion talks or some crap. this guy is a beast.

  • @shrutparikh4167

    @shrutparikh4167

    3 жыл бұрын

    Very true

  • @tremolony4924

    @tremolony4924

    2 жыл бұрын

    Meanwhile, my teacher taking 3 hours to explain what I just learnt in 15minutes

  • @douglee650

    @douglee650

    2 жыл бұрын

    Kyle for prez!

  • @Syed-wj4pj
    @Syed-wj4pj3 жыл бұрын

    Dude! every single time, after searching for hours, I end up finding your video and understand a concept. Never stop You are a great teacher

  • @lordrampenthump422

    @lordrampenthump422

    2 жыл бұрын

    every single time? So not a fast learner then ;-p

  • @nsharma4981
    @nsharma49813 жыл бұрын

    Every beginner to backend MUST watch this video. Learning node, express, mongoose, etc all at once, I didn't know where one ended and the other began. This vid and the blog cleared up all the confusion, and your explanation of next() was better than the official documentation. Thanks a lot Kyle, for explaining what middleware really is so well! 😊

  • @emanuelsiu1232
    @emanuelsiu12324 жыл бұрын

    Everyone else I try to learn from zooms past topics like this and just expects you to get it. Thank you for your clarity and systematic representation of flow and function.

  • @User36282
    @User36282 Жыл бұрын

    You have a very clear straight to the point way of explaining things, your tutorials are super time efficient to watch, as everything you talk about is relevant to what you're trying to explain.

  • @ayushiagarwal7548
    @ayushiagarwal75482 жыл бұрын

    I have been trying to understand what middleware is for the last two weeks. Went through a ridiculous amount of documentation with no clarification. And then this randomly pops up in my recommendations and everything is suddenly so clear. Thank you so much, Kyle!

  • @noidea176
    @noidea1763 жыл бұрын

    It is actually unreal how good you are at teaching, great job man.

  • @simy261
    @simy2612 жыл бұрын

    You are a phenomenal teacher, I can always rely on your tutorials if there's anything I don't understand about web dev, your videos are really empowering and super helpful!

  • @zhan2780
    @zhan27803 жыл бұрын

    It's been a while since I enjoyed learning something. I literally laughed! You are definitely one of the best teachers out there!

  • @arturobracero3450
    @arturobracero34502 жыл бұрын

    I am working on a project using Express and had several questions about middleware. You literally explained all of them one after the other. Amazing work.

  • @gauravpoudel7288
    @gauravpoudel72884 жыл бұрын

    bro thanks again. U r just different from the rest of the tutors out here on youtube. Clear, concise and more importantly teaching best practices

  • @prangshujg5920
    @prangshujg59204 жыл бұрын

    Exactly I ran through the same, cannot use headers .... And here you are .... explaining things so easily, crisp and clear !! Thanks man 👍

  • @aswathis2938
    @aswathis29383 жыл бұрын

    Your explanation of middleware is just on point....the best video to understand middleware in just 15 mins which just covers everything 💗

  • @therimalaya
    @therimalaya3 жыл бұрын

    You are definitely a great teacher. After watching your videos, I always feel my one thumbs-up has been too small for your gratitude. Thank you for making these videos.

  • @CodeRedCoder
    @CodeRedCoder3 жыл бұрын

    Thanks for the great video. I wish more videos were like this. So many code-along tutorials leave newbies thinking they're learning better than they are. Great video.

  • @harry-cee
    @harry-cee3 жыл бұрын

    Hey Kyle, I had been looking for detailed explanation of express middleware. Thank you for this video! You went above and beyond. Subscribed.

  • @weaponizedlego2959
    @weaponizedlego29594 жыл бұрын

    Thank you so much for including a blog post too. Love you explanations. But for a quick reference or a lookup on a specific part. The video format is rarely friendly. Love to read guides

  • @felipemelendez5741
    @felipemelendez57412 жыл бұрын

    If I ever need to know something and see that you have created content that explains it I watch it because I know it's going to be excellent. But this was the first time I read one of your posts... and now I'm an even bigger fan, thank you!

  • @user-mo3cw6go7c
    @user-mo3cw6go7c2 жыл бұрын

    This is a topic that has always been dull to me even though I use it quite a bit, and it always feels uncomfortable to use something you do not fully understand You have clarified the issue completely !!!

  • @ambarishdashora5440
    @ambarishdashora54403 жыл бұрын

    Bro you are like a god of nodejs . I completely understood middle ware. Your video is awesome. Please keep making more such videos. You are a great teacher.

  • @user-kn4oi9oh4i
    @user-kn4oi9oh4i10 күн бұрын

    The only thing I hate about this video is it ended! This is gold content right here! ❤

  • @skullwise
    @skullwise4 жыл бұрын

    I appreciate that a lot of preparation has gone into making this video... Thanks, man.

  • @romanazeem3098
    @romanazeem30984 жыл бұрын

    This was the first video i ever on KZread without wasting time and giving all the contents surely related to the topic. The topic is well covered and my concepts are just polished again. Just make me blush .. thanks. Btw it was first to watch your video. I do subscribe.

  • @jonathansolis8913
    @jonathansolis89134 жыл бұрын

    Thank you for sharing, you always give us valuable content in the easiest way, keep it up!

  • @ryaaan0751
    @ryaaan07516 ай бұрын

    I just started learning NodeJS and Express and this video really helps me to further my understanding about Middlewares! Thanks so much for this!

  • @muhammadmoiz2560
    @muhammadmoiz25602 жыл бұрын

    Luv you man I spended more than 2 hours in an error in my website but couldn't found so i left it after 2 hours i saw your video and figured out my error luv you so much😄❤❤❤

  • @taofeeqomotolani2311
    @taofeeqomotolani231111 ай бұрын

    The distinction between next() function call and return was the vital information and I am glad you addressed it

  • @uwspstar2008
    @uwspstar20084 жыл бұрын

    Thanks for share, love these short tutorials!

  • @luckyone525
    @luckyone52511 ай бұрын

    Amazing simple explanation with examples, this is how documentation should be written, with emphasis on certain behaviours of something instead of dull wall of text from which you might or might not figure something out and, you go to youtube for human explanation, great work man!

  • @VladdyHell
    @VladdyHell2 жыл бұрын

    This guy is just an absolute beast. Can't believe I bought a course and didn't understand a thing about express, all I did was to copy til' I watched this video.

  • @hasanali6798
    @hasanali67984 жыл бұрын

    This is what i needed. Thank you!!!

  • @hirenaswar8104
    @hirenaswar81042 жыл бұрын

    this is the best video on middleware on you tube great job mate👍

  • @mattoattacko
    @mattoattacko4 жыл бұрын

    I absolutely love your content. Between Boot-camp, Treehouse, and you, I'm almost competent.

  • @delphineamaka9422
    @delphineamaka9422 Жыл бұрын

    I'm about to watch this video, and the comments gladden my heart...I can't wait to watch it

  • @carlos66083
    @carlos660833 жыл бұрын

    I was already aware of what middleware is but this explanation made it much clearer. Thanks!

  • @millikin2099
    @millikin2099 Жыл бұрын

    Great video Kyle. Your explanations are always so clear and easy to understand.

  • @aryanmehta7375
    @aryanmehta73752 ай бұрын

    Man this was by far the best explanation of middlewares ,,, nothing fancy or complex, just to the point explanation of what needs to be known if you actually want to learn the concept and not some block of code... the explanation after 11:00 is missed by all other videos I have watched on this topic and which is so essential in actual application of middlewares,,, for my case I was looking for some kind of explanation of how does logger functions log response times if they are initialized as first middleware as in it should have passed to next middleware before sending response,,, But all is now clear and I am able to digest the functioning of it...

  • @khandoor7228
    @khandoor72284 жыл бұрын

    Great Job Kyle? I find your content really useful, the blog is a nice touch. i will use that. TY

  • @mohammedelhadididi4612
    @mohammedelhadididi46124 жыл бұрын

    Amazing video kyle , thank you very much , in just about 15 minutes , I learned what i wouldn't learn in 2 hours , thank you again

  • @Brian-og6kk
    @Brian-og6kk3 жыл бұрын

    Hey Kyle, you probably won't see this, but for those who are in the comments, these videos he puts together are amazing. I am currently enrolled in a Software Engineering course, and when we get the new weekly material, the first thing I do is check to see if Kyle has a video on it. Most of the time he does. I have learned so much from you. One day I will land a great job thanks to your videos, and then I will be able to repay you somehow.

  • @kostasrp6634

    @kostasrp6634

    8 ай бұрын

    Did you land a great job?

  • @Brian-og6kk

    @Brian-og6kk

    8 ай бұрын

    @@kostasrp6634 I did. This April will be 2 years on the job and doing great so far!!!

  • @billnewsr.9314
    @billnewsr.9314 Жыл бұрын

    Nice job walking through a very simplified version. Like the way you showed by running examples with your explanations.

  • @kevinkiumbe5620
    @kevinkiumbe56206 ай бұрын

    spent a week just getting the concept, cant believe how easy you make it !

  • @amazing-ek2uo
    @amazing-ek2uo2 жыл бұрын

    I just went through the blog article. It is amazing. Thank u dude..💖💖💖

  • @n3uron_bloom938
    @n3uron_bloom938 Жыл бұрын

    This is such a huge help, great video. Thank you!

  • @oscarleon3008
    @oscarleon30083 жыл бұрын

    You explained this perfectly. Thank you for another great video!

  • @dennishofke
    @dennishofke4 жыл бұрын

    Super interesting and well explained. Awesome content dude, you deserve to become a big yt'er

  • @gyappumusoka4016
    @gyappumusoka40162 жыл бұрын

    Amazing explanation. I finally have a good grasp on middleware. Thank you!

  • @EddyMunsta
    @EddyMunsta9 ай бұрын

    Nice video, studying this in a full stack camp and your video helped explain a nice overview of middleware.

  • @paulclarke4099
    @paulclarke40994 жыл бұрын

    Great video, thanks heaps for your always clear, concise and succinct tutorials, keep up the great work.

  • @danlevy9478
    @danlevy94783 жыл бұрын

    Best explanation on KZread period.

  • @toastrecon
    @toastrecon Жыл бұрын

    Just what I needed. Thank you!

  • @contactdi8426
    @contactdi84263 жыл бұрын

    Ohhh Man !!! I was so f**ing confused about this next () !!!! in middleware but you have made everything very clear. Thanks a lot :)

  • @Enzo-sp3bf
    @Enzo-sp3bf4 ай бұрын

    I watched the blog article and want to say thank you that your article is so great

  • @KhoaNguyen-mv2mu
    @KhoaNguyen-mv2mu3 жыл бұрын

    Thanks so much for your efforts. It not only clears my mind but also saves me a bunch of time.

  • @garvsharma405
    @garvsharma4052 жыл бұрын

    Simply the best videos explaining concepts clearly & to the point.

  • @bipinmsit7380
    @bipinmsit7380 Жыл бұрын

    Finally I understood middleware correctly when you explained in last section before & after example. Great work man!

  • @AssFaceNFT
    @AssFaceNFT2 жыл бұрын

    My guy always good to see u! 🌹🙏🔥

  • @ikramz
    @ikramz3 жыл бұрын

    Excellent video, really helpful for beginners (especially the explanation on how next() is not the same as function return). But i think its also important to explain on error-handling middleware, that would definitely help the beginners to explore the error-handling pattern in express js

  • @jsonslim
    @jsonslim3 жыл бұрын

    Such a nice explanation, a little deeper to basics

  • @bruhmoment3731
    @bruhmoment3731 Жыл бұрын

    It's amazing how I can understand all of ur videos. You're an amazing teacher

  • @IceBreakerGamer
    @IceBreakerGamer3 жыл бұрын

    You are the best teacher ever! You saved me time and complexity

  • @ethanwraith8970
    @ethanwraith89702 жыл бұрын

    best explanation I've ever seen! You rock.

  • @VladimirJovana
    @VladimirJovana4 жыл бұрын

    thanks man, very clever explanations, clarified some of misconceptions I had

  • @joeyvico
    @joeyvico4 жыл бұрын

    Beautifully explained. Brilliant!

  • @suomiseikkailut3932
    @suomiseikkailut3932 Жыл бұрын

    Just amazing tutorial. Thank you, I finally understand properly what the middleware is and how it works. Thank you!

  • @zoltancaputo9562
    @zoltancaputo9562 Жыл бұрын

    Awesome 👏 I have been studying it on some courses in Brazil and I didn’t have an such good explanation like this ! Now I fell secure to start my career 😂

  • @jasonhuang4333
    @jasonhuang43332 жыл бұрын

    I love this channel! I learned so much from React hooks to Node

  • @pisethyoy5134
    @pisethyoy51343 жыл бұрын

    Absolutely great, was confused this function in authentication.

  • @jamjam3448
    @jamjam34482 жыл бұрын

    I like it when you say, "EVERYTHING!" I feel assured!

  • @TyRector
    @TyRector Жыл бұрын

    Your explanations are the best!!!!

  • @rootdev8106
    @rootdev81064 жыл бұрын

    Now I understand next(), thank you for your great videos!!

  • @rishabsharma5307
    @rishabsharma53072 жыл бұрын

    Very good tutorial. Thank you!

  • @ayikkathilkarthik4312
    @ayikkathilkarthik43123 жыл бұрын

    Thank you soooo much. Every time i watch your video, my concept of the topic is cleared.

  • @shikharchaudhary6984
    @shikharchaudhary69843 жыл бұрын

    For me, Your article was better than Express documentation

  • @WebDevSimplified

    @WebDevSimplified

    3 жыл бұрын

    Thank you!

  • @AbdoTech0
    @AbdoTech04 жыл бұрын

    I hope you get 1M Subs , you deserve it 😍

  • @Steve-rx4sw
    @Steve-rx4sw2 жыл бұрын

    Sleek and good. I was actually following a diff tutorial but didn't understand the concept. Nice work my. man! Thanks

  • @riteshzd
    @riteshzd3 жыл бұрын

    Super helpful video, thanks mate

  • @renypacheco4812
    @renypacheco48124 жыл бұрын

    Amazing tutorial,,Hoping for more node and express tutorials.. Love from Philippines 🇵🇭

  • @kostiantynkarzhanov9216
    @kostiantynkarzhanov92167 ай бұрын

    Thank you! Great tutorial! 💛

  • @amitgameandfun
    @amitgameandfun3 жыл бұрын

    WOW, a simple and solid explanation!

  • @ronjones1587
    @ronjones15872 жыл бұрын

    Amazing! Thank you! you solved my problem!

  • @MarcosVella
    @MarcosVella3 жыл бұрын

    Your content is amazing! Love the way you manage to simplify every single subject you speak about. Cheers from Brazil!

  • @firman175
    @firman1752 жыл бұрын

    You are simplify my learning, thanks Kyle

  • @zensic
    @zensic Жыл бұрын

    Thank you! This was really helpful to me

  • @muhammadjunaid3167
    @muhammadjunaid31672 ай бұрын

    Best Middleware tutorial.

  • @kartikeyjangir6003
    @kartikeyjangir60032 жыл бұрын

    Bro you really named your channel correctly.🔥🔥🔥🔥 ❤️❤️❤️❤️

  • @tellvivk
    @tellvivk3 жыл бұрын

    Simple and to the point, learned a lot. Subbed.

  • @ShakDotTV
    @ShakDotTV3 жыл бұрын

    Well done Kyle; thanks!

  • @manibarathi08
    @manibarathi083 жыл бұрын

    Very clean explanation !!...Thank You

  • @alinawaz4034
    @alinawaz40344 жыл бұрын

    Best tutorial and super neat i love these type of stuff.

  • @jeevankurian9148
    @jeevankurian9148 Жыл бұрын

    Beautifully explained... Thank You😍

  • @scottfinamore7377
    @scottfinamore73772 ай бұрын

    so professional, bravo man thank you

  • @Jtube0101Mega
    @Jtube0101Mega5 ай бұрын

    Great lesson! Thank you very much!

  • @mohdhussain5918
    @mohdhussain59182 жыл бұрын

    In this 14 min videos you have cleared the major concept which link to the error handling, route handling and many more

  • @mohdhussain5918

    @mohdhussain5918

    2 жыл бұрын

    Thanks, great explanation

  • @abirpaul9027
    @abirpaul90272 жыл бұрын

    What an explanation truly understood

  • @yossiyun
    @yossiyun Жыл бұрын

    Super simplified. Thanks

  • @SiriusFuenmayor
    @SiriusFuenmayor3 жыл бұрын

    Excellent, concise and complete explanation

  • @jeffhill6769
    @jeffhill6769 Жыл бұрын

    Well done. Very concise and tremendously useful.

  • @alfredoalarconyanez4896
    @alfredoalarconyanez48962 жыл бұрын

    Thank you for this incredibly clear video !