Тёмный

Node.js Crash Course Tutorial #4 - Requests & Responses 

Net Ninja
Подписаться 1,5 млн
Просмотров 296 тыс.
50% 1

Hey gang, in this Node.js tutorial we'll take a look at how we can gather information from a user request & then send back a response to the browser.
0:00 -- request object
3:22 -- response object
9:05 -- returning html pages
12:59 -- basic routing
18:41 -- status codes
22:17 -- redirects
🐱‍👤🐱‍👤 JOIN THE GANG -
/ @netninja
----------------------------------------
🐱‍💻 🐱‍💻 My Udemy Courses:
+ Modern JavaScript - www.thenetninja.co.uk/udemy/m...
+ Vue JS & Firebase - www.thenetninja.co.uk/udemy/vu...
+ D3.js & Firebase - www.thenetninja.co.uk/udemy/d...
🐱‍💻 🐱‍💻 Course Files:
github.com/iamshaunjp/node-cr...
🐱‍💻 🐱‍💻 Other Related Free Courses:
+ Modern JavaScript Tutorial - • Modern JavaScript Tuto...
+ HTML & CSS Crash Course - • HTML & CSS Crash Cours...
🐱‍💻 🐱‍💻 Node.js links
+ Download here - nodejs.org/en/download/

Опубликовано:

 

4 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 438   
@rickfearn3663
@rickfearn3663 3 года назад
The video is the perfect example of the educational expertise of the creator. Instead of starting with the 'best' way of coding the serving of webpages, the author codes a more primitive way that is from a learning perspective, much more intuitive. Hats off to this outstanding creator.
@sivach8667
@sivach8667 3 года назад
The first channel I came across that explained Node js in a structured fashion. Every little detail is explained sooooo well. Thank you.
@adelprog
@adelprog Год назад
not just Node JS, i learned react from here. so thinks Shaun Pelling
@Ziad-Al
@Ziad-Al Год назад
This is what I love about Shaun's tutorials; he slowly takes you through the concept, explains what is going under the hood, and shows you how the code evolved and where it started. so you understand how to write the correct code block and why you are writing it that way.
@NetNinja
@NetNinja Год назад
Thanks for the kind words Ziad - that's the aim! :)
@Ziad-Al
@Ziad-Al Год назад
​@@NetNinja You are nailing it Shaun, Thanks a ton. you are helping thousands of people and that is awesome, I wish I can do the same for you, I bought your course, but I can do more, so if you need any kind of help to handle any extra tasks, just let me know. I will do it with pleasure and gratitude.
@ubarjaktarev
@ubarjaktarev Год назад
I can safely say that so far this has been the best Node resource I've come across, specifically because it doesn't jump into Express from the get-go. My first encounter with Node was basically mindlessly copying requires and module.exports and having no idea why which made it impossible to remember everything. This now actually makes complete sense. Thanks for this 👏👏
@NetNinja
@NetNinja Год назад
Thank you for the kind words Uroš, really glad it was helpful :)
@AngaarUriakhil
@AngaarUriakhil 2 года назад
I can't believe how good this course is, and free too! We live in a golden age of education. Thanks so much.
@tech3425
@tech3425 Год назад
Delightful outlook
@ourcode9330
@ourcode9330 2 года назад
Honestly, I spent 5 months just by looking tutorials of many youtubers on Node JS course. But after 5 months of struggling, I cam here. Now I can assure that I am full satck JS Developer beacuse of you
@farrukhatabekov595
@farrukhatabekov595 4 года назад
Here is an interesting thought. I just went to Udemy looking for a complete Node js course and spent an hour reviewing a number of Complete, Perfect , Modent, Latest Node js courses. In the end, I wasted almost an hour of my time going throught courses that are outdated, not for intermediate developers and mostly, not on the latest version. Just wanted to let you guys know channels like these are not many.
@NetNinja
@NetNinja 4 года назад
Thank you :). Really appreciate it. Unfortunately tech moves on very quickly so things can become outdated easily!
@funworld8379
@funworld8379 3 года назад
same thing happened me yesterday. searched on hour for node js course on udemy but couldnt find any good one. and then i stumbled upon this channel and i am following this tutorial.
@farrukhatabekov595
@farrukhatabekov595 3 года назад
@@funworld8379 This is one of the best web development channels on RU-vid. I like how clearly Sean explains the topic in a quite short amount of time .
@funworld8379
@funworld8379 3 года назад
@@farrukhatabekov595 exactly the explanation is clear and to the point
@someone11233
@someone11233 3 года назад
@@funworld8379 Jonas's Course on Udemy "Node Js Express Js and mongodb - the Complete Bootcamp " Is best course ever made on Node Js .......
@oleggold
@oleggold 3 года назад
Amazing tutorials Sean. I followed 3-4 months ago your JS tutorials, and it helped me a lot. Now, after watching some other tutorials here and there, decided 4 days ago to go back to your channel to look for these, and surprise surprise, a new tutorial just on the topic I need. Thank you so much! You are amazing! Cheers from Israel.
@prasathj7436
@prasathj7436 Год назад
This is incredible for anyone to learn progressively. Thanks a lot for taking time to put this together.
@msvague1292
@msvague1292 3 года назад
Thank you so much for doing this tutorial. Understanding how all of this stuff works is how I learn. You are awesome! I've learned more about Node with the first 4 videos then I did at an actual coding bootcamp.
@amalsunil4722
@amalsunil4722 Год назад
At 24:53 it's better to use 'return;' instead of 'break;' in line number 24 so that we exit the function. Otherwise it could lead to error as we're then trying to read from a file './views/' which is not valid. Thank you so much for the wonderful tutorial my friend. Cheers!
@dannykryan
@dannykryan Год назад
thanks for this comment, for me, I'm getting my redirect back with an added '/' (/about/) which doesn't exist. So, neither 'break' or 'return' are working for me. Do you have any idea why?
@jer254
@jer254 4 года назад
I have done a node course that took me almost a month I mean yeah it helps when im coming here to look for more information but I cant believe how good Shaun is a great teacher. Like really this guys is the real deal and I know I can always count on Shaun. Stays away from the tech guru limelight but his work definitely speaks for itself. I freaking love you Shaun
@kerendn
@kerendn 3 года назад
I love your teaching style. You start from the basic building blocks before explaining the more streamlined methods, so we can get a feeling for the code as we go and end up with a better grasp of it. Thank you for sharing your knowledge and skill as a teacher!
@timobrien4190
@timobrien4190 2 года назад
I am a tutor and this helped my student and I on her assignment regarding setting up a server and answered a lot of questions we had, thanks!
@muhammadahmedjaved7691
@muhammadahmedjaved7691 4 года назад
I love your hardwork Keep it up and keep educating people
@NetNinja
@NetNinja 4 года назад
Thank you so much 😀
@lennythach607
@lennythach607 2 года назад
Omg, This is so good! Exactly what I was looking for. You are very thorough with your explanation about req and res, unlike many others tutorials that brush through it quickly. I love that! Subscribed and Liked!
@Slikon
@Slikon 4 года назад
So far the best Node.js tutorial for beginners I have ever found! Will this tutorial cover all those topics you explained in your previous Node.js tutorial 4 years ago?
@NetNinja
@NetNinja 4 года назад
Hey, thanks. And yeah - I'll be covering pretty much everything the old one covers + a bit more.
@Slikon
@Slikon 4 года назад
@@NetNinja Thank you so much! Looking forward to see your new videos! Thank you for what you do!
@OperationAndrew.
@OperationAndrew. 3 года назад
Your content is acutely aware of our short attention spans! It is appreciated. Havn't decided whether I prefer lots of small videos or larger ones broken up to specific lectures, but breaking it up one way or another is definitely a good thing! Update: Decided I prefer more shorter videos, it will allow me to quickly reference the material I need when I am using this stuff in my own projects.
@ozzyfromspace
@ozzyfromspace 3 года назад
Before seeing your solution using switch statements, I tried writing the logic using if statements, and it sorta worked, but it was confusing to read and really buggy because I had fs.readFile() and fs.stat().isFile() methods flying around everywhere. Your method was eye opening. I think sometimes, the more advanced you are, the more streamlined your code can become, because I'm looking at what you did (from the pov of a noob) and just feeling awe for your coding design patterns. Thanks for making this series, sensei, you've really helped me! Prior to your series, I was feeling very disgruntled about the prospect of figuring out how to do server stuff (I tried some courses on php that were too cookie cutter for me to learn anything substancial) and seeing the flexibility of the node.js coding environment really opened my eyes to everything that's possible. You're a hero, mate! Greetings and blessings from the US 🙏🏽🎊❤️🔥🏆☮️🙌🏽
@mark3141592654
@mark3141592654 2 года назад
Thanks for your time put on this, man. Amazing patience and dedication! Cheers!
@utsavojha2953
@utsavojha2953 3 года назад
Net Ninja youre amazing, only someone with a solid understanding could explain things so well!!!
@anishsaha397
@anishsaha397 4 года назад
Your videos are the best. The way you explain things nobody else does. Thank you very much.😊
@thomasm1964
@thomasm1964 2 года назад
Yay! I now understand Node! It's taken weeks to get my head around half-understood concepts which you have so clearly explained in just over two hours! Next!
@tekliebelay4896
@tekliebelay4896 3 года назад
One of the best contents I have ever seen. Keep up the good work!
@eazy2195
@eazy2195 2 месяца назад
I've been working as a frontend web dev for 3+ years now and started getting into backend, this is the first course that was easy to comprehend and that's coming from someone that already has coding experience, can't imagine a beginner looking at some of the other courses out there, how confused they might get
@evilprince2009
@evilprince2009 3 года назад
This lecture was an eye opener. Can't thank you enough man! You are awesome.
@JulesCalella
@JulesCalella 4 года назад
Thank you for this video (and all of them really, I'm binge watching them). Most people jump straight into express, as you mentioned, and it makes it hard to see what Node is capable of on its own.
@germain1984
@germain1984 4 года назад
Love how you explain concepts, such great content
@kostiantynkarzhanov9216
@kostiantynkarzhanov9216 10 месяцев назад
Very well structured and simply to understand! Thank you so much for your work! Great tutorial 💛
@ozzyfromspace
@ozzyfromspace 3 года назад
Lol when the ads come on, I usually let them play ❤️ I'm a broke, unemployed bum rn lol, so this is the only way I know to support. And I've shared your channel with some coder friends of mine. You absolutely rock, and one day I hope I'm in the position to support your work substantially! The internet owes you a massive debt, my guy! 🔥🙌🏽
@sathvikmalgikar2842
@sathvikmalgikar2842 Год назад
really admire the consistency and the homogenous format maintained across all the tutorials. very beginner friendly and easy to grasp
@NetNinja
@NetNinja Год назад
Great to hear! Thanks for the kind words Sathvik :)
@PraveenKumar-ri9ee
@PraveenKumar-ri9ee 3 года назад
This is the best tutorial on node js I found on the internet ... Thanks a lot sir!
@web_dev_host
@web_dev_host 2 года назад
You are the best. I thought node js was something hard to grasp but you made it so easy to understand. Loved it.
@murat6018
@murat6018 2 года назад
Shaun is a legend. He really knows his stuff with all its underlying principles.
@abdullanilam8049
@abdullanilam8049 Год назад
200% recommended this video tutorial. Really helps. No words to say
@danielwatson6529
@danielwatson6529 2 года назад
This is such a good playlist!! ive come back around, as I kept up but I didn't absorb it all first time, but now its really sinking in
@hamzayousfi4275
@hamzayousfi4275 3 года назад
Thank you for everything, too much value in all videos of this channel that's just WOW ... Good luck for the rest !!
@AhmedAli-go7wx
@AhmedAli-go7wx 3 года назад
So far the best Node.js tutorial for beginners I have ever found! thanks
@kresnofatihimani8402
@kresnofatihimani8402 3 года назад
I was actually surprised to know we could actually do all this from scratch. I tried learning a Python Framework called Django and felt that the logic behind it didn't flow naturally. Good thing I found your videos. thx
@Salehalanazi-7
@Salehalanazi-7 3 года назад
Learned PHP many years ago, Never used it much and pretty much gave up on backend, Now I'm speed running thorough this course and it's amazing. Dude I know words aren't enough. Let me get paid.. Holy shit you're amazing.
@STUPIDYOUTUBE_HIDINGMSGS
@STUPIDYOUTUBE_HIDINGMSGS 3 года назад
Shaun's way of teaching really really suits me, clear complete explanations unlike the other ones I've seen from LinkedIn Learning where their instructors are assuming that small details are not that important, not switching between code files while explaining what their doing. Shaun, I hope you will consider making a full-pledge real-world website using MERN stack, maybe an e-commerce site for beginner to mid-level devs, if you submit it in Udemy I'll definitely buy it? :) Thanks for you great work. Keep it coming!
@julianstorm7722
@julianstorm7722 3 года назад
Absolute gem!! Thanks heaps for all your effort.
@ozzyfromspace
@ozzyfromspace 3 года назад
Net Ninja: "I think your website will have more than two lines of code" Me: "That's a bold assumption" 😂
@oleggold
@oleggold 3 года назад
NOIIICCCEEE :) hahaha
@ZsoltGaramszegi
@ZsoltGaramszegi 3 года назад
This is really useful, I can follow, I can practice, without wasting the time. Thank you so much and congrats!
@zsaing1
@zsaing1 3 года назад
I have checked few course (by well known people) so far on the same topic. But, your course is by far the best. You have got very good skills to communicate the concepts beside giving the code demonstrations. Really appreiciate and thank you very much for this wonderful work that is available free to all. Thumns up
@NetNinja
@NetNinja 3 года назад
Thanks so much 😃
@user-mt4wg8qj2k
@user-mt4wg8qj2k 15 дней назад
Amazing video! Thanks for all the under the hood explanations
@kunlohith
@kunlohith 3 года назад
Hey, it's me the 11-year-old kid nerd learning node.js from home. Your reply made me very happy and the videos are absolutely miraculous. I watched 2 other of your series of PHP and PHP classes. You are a G.O.A.T. a.k.a. greatest of all time. Keep it up and plz. reply...
@NetNinja
@NetNinja 3 года назад
Awesome, thank you!
@bujarismaili
@bujarismaili 2 года назад
One of the best tutorials there - keep up with the good work!
@sathvikmalgikar2842
@sathvikmalgikar2842 Год назад
The *"Alright then gang!"* never gets old
@mvpmc69
@mvpmc69 2 года назад
Very nicely structured tutorials. After looking through many, this one is the easiest to use.
@eufraniodiogo50
@eufraniodiogo50 3 года назад
I was watching a course here at youtube that was teaching nodejs, but dude, it was like, I was not learning nodejs I was learning frameworks yeah it's cool to learn frameworks it make our lives easier but we also need to understand what's happening under the hood and it's what you're teaching us! Thank you so much sir!
@prakhardhama3069
@prakhardhama3069 3 года назад
This is the best video I have ever seen on RU-vid.
@Bruno87198
@Bruno87198 Год назад
Anybody can learn from your crash courses! Everything is so clear and very understandable. You speak in a clear way, your English is easy to understand and the way you cover the basics so we can learn better in the next steps, is just AWESOME! Thanks a lot for all theses videos and crash courses. Cheers from Brazil.
@NetNinja
@NetNinja Год назад
Thanks for the kind words Bruno :) big love to Brazil!
@aliahmedkhan9690
@aliahmedkhan9690 2 года назад
If I'd get to live with one person on this earth, just one person for my entire life, I would go on living with you! Thanks Man for adding so much value to our lives.
@Stevenalp18
@Stevenalp18 9 месяцев назад
Love your videos man! I am doing a 30 day coding challenge and staying committed by posting daily and dude you have been teaching me what a instructor could not, your the instructor I wish I had before. Thanks again man! Will definitely support the channel
@NetNinja
@NetNinja 9 месяцев назад
Thanks Steven, this is great to hear :) good luck with your challenge!
@rhodesjh
@rhodesjh 2 года назад
excellent course. Thank you. Glad I found this.
@adventechoo
@adventechoo 4 года назад
thanks man...loving this nodejs series
@elendil4543
@elendil4543 3 года назад
10:29 best require pronunciation ever
@settnaing199
@settnaing199 4 года назад
The Best Node.js course for beginner like myself. Thank you!!!
@whoIsV
@whoIsV Год назад
This node course is very easy to follow and nicely paced. Thank you.
@EVA_Hamza
@EVA_Hamza 3 года назад
Thank you so much, this is exactly what I need!
@matthew78uk
@matthew78uk 3 года назад
Best video EVER on plain node!
@audread_
@audread_ 3 года назад
Hey Net Ninja, I Love your work. Thank you for bringing this book to life Books{ Content-Type: "text/javascript", Book-Name: "Node js in action", Authors: ["Mike Cantelon", " T.J. Holowaychuk", " Marc Harter", "Nathan Rajlich"] }
@AyushiSharmaDSA
@AyushiSharmaDSA 4 года назад
Waiting for the next lesson..Thanks for making these tutorials :)
@hajerakhatunsaba4694
@hajerakhatunsaba4694 3 года назад
LOVE how you explain!!
@elweonweandolaweafome
@elweonweandolaweafome Год назад
this crash course it's so incredible
@HasinthaWeragala
@HasinthaWeragala 6 месяцев назад
this must be the best node tutorial on the youtube, kudos to you sir. you make us eager to learn more of node.
@NetNinja
@NetNinja 6 месяцев назад
That means a lot, thanks :)
@msaters8166
@msaters8166 2 года назад
Love your content, your videos help a lot!
@denindenial
@denindenial 5 месяцев назад
This tutorial is incredibly helpful. Everything is explained clearly and I can't recommend it more! Thank you so much :)
@NetNinja
@NetNinja 5 месяцев назад
Thanks! :)
@hadijafari5631
@hadijafari5631 Год назад
Thanks Shaun, You are a real Ninja.
@harishhasti8251
@harishhasti8251 3 года назад
Sir, this playlist is helping me a lot, Thanks a lot for doing this playlist
@fredpourlesintimes
@fredpourlesintimes 2 года назад
Very interesting chapter! Basic routing system, status code, redirection... We control all these stuff and it's enjoyable, thanks to your course :)
@deanandreakis5010
@deanandreakis5010 3 года назад
Really great tutorials...much appreciated!
@mattcaffery133
@mattcaffery133 3 года назад
Love you Shaun. Thank you for your efforts brother :)
@Daniyal-ep4cj
@Daniyal-ep4cj 2 года назад
simple and beautiful way of explanation
@marvin_e
@marvin_e 3 года назад
The way you teach🙌🏼🙌🏼 Just Amazing 🙌🏼🙌🏼
@NetNinja
@NetNinja 3 года назад
Thank you so much 😀
@akshittrikha2297
@akshittrikha2297 3 года назад
Dude, you are the best ninja ever!
@naywinhlaing7574
@naywinhlaing7574 4 года назад
you are the best ever!
@albertoarielarce2982
@albertoarielarce2982 3 года назад
yes, you are!
@muzamilhussain9908
@muzamilhussain9908 3 года назад
he is bestest
@alicegateran3813
@alicegateran3813 3 года назад
yes he is
@sadam_khan
@sadam_khan Год назад
OMG, Absolutely brilliant.
@senyam8931
@senyam8931 2 года назад
u r great believe me , u explain everything by the easiest way , thanks a lot
@ZyncInteractive
@ZyncInteractive 4 года назад
Love your work mate. Keep up the great work! Subbed and joined
@NetNinja
@NetNinja 4 года назад
Thank you so much :).
@timohaverich2422
@timohaverich2422 2 года назад
Amazing work!
@ahamster3000
@ahamster3000 Год назад
From Morocco with love , thank you sir for this simplicity .
@NetNinja
@NetNinja Год назад
You are very welcome! Hi to Morocco (great World Cup!) :)
@farahmalallah
@farahmalallah 3 года назад
Amazing as always .. Thank you!
@flowmixed4990
@flowmixed4990 Год назад
love it love it. Your the best teacher. You mad it so easy good explanation and much more efficient. thank you for making such tutorial Love from Afghanistan
@muhammadraheel3874
@muhammadraheel3874 Год назад
You're the most interesting and only person I'm leaving comment for on RU-vid buddy 😍 Lot's of love from Pakistan 😇
@prabhatsingh2606
@prabhatsingh2606 3 года назад
This is amazing man keep going
@dev.regotube
@dev.regotube 3 года назад
Thanks. Again for making this video!
@JimohSegun
@JimohSegun Год назад
God bless, thanks alot, I've being watching this playlist over 5hrs now, all great walls of node js are being broken down gradually
@NetNinja
@NetNinja Год назад
Brilliant to hear that Jimoh :)
@Zen-lz1hc
@Zen-lz1hc Год назад
LIKE This tutorial helped me to understand how a Node server works and the order of operations that the node interpreter executes the js source code. Many Thanks for sharing, now things are alot clearer for me : )
@siyabongakhumalo6841
@siyabongakhumalo6841 Год назад
I have to say this is the best node js tutorial you explain everything well thank you net ninja
@NetNinja
@NetNinja Год назад
You're very welcome! :)
@samjimmy8783
@samjimmy8783 3 года назад
best node js tutorial for beginner, thanks for sharing knowledge
@garryborn195
@garryborn195 Год назад
Well done! Thanks!
@PaulBrownclk-me
@PaulBrownclk-me 4 года назад
Tip: the last break in the switch is not needed, since the default is the last line of the switch statement anyway. Break is used in the previous case tests to stop further evaluation of the remaining switch cases. Ps. Thanks for the new course, looking forward to finishing this , and becoming a node ninja!!
@troys1426
@troys1426 4 года назад
He actually did that before... so why not now?
@PaulBrownclk-me
@PaulBrownclk-me 4 года назад
Troy Serapio not sure I understand your question? Can you elaborate and I'll try to help if I can
@pawels8040
@pawels8040 4 года назад
Hey man , thanks for new content. 👍🏻
@dpxy1599
@dpxy1599 9 месяцев назад
Playlist so good I am binge watching it
@benjaminnwokolo2935
@benjaminnwokolo2935 2 года назад
Best tutorial man🔥🔥🔥
@SeeKnowledge
@SeeKnowledge 3 года назад
thanks for sharing your knowledge for free of cost
@ibrahims5457
@ibrahims5457 4 года назад
You're doing great man...
@MrKaremnour
@MrKaremnour 3 года назад
I just watch Ur video because Ur awesome accent and easy learning...u r rock
Далее
Node.js Crash Course Tutorial #5 - NPM
16:49
Просмотров 210 тыс.
ТЫ С ДРУГОМ В ДЕТСТВЕ😂#shorts
01:00
ELA NÃO ESPERAVA POR ISSO 🥶 ATTITUDE #shorts
00:20
Наташа Кампуш. 3096 дней в плену.
00:58
Node.js Crash Course Tutorial #7 - View Engines
35:59
Просмотров 296 тыс.
HTTP Crash Course & Exploration
38:30
Просмотров 1,1 млн
Why Signals Are Better Than React Hooks
16:30
Просмотров 467 тыс.
How I'd Learn Web Development (If I Could Start Over)
6:55
The Story of Next.js
12:13
Просмотров 560 тыс.
Learn Express JS In 35 Minutes
36:03
Просмотров 783 тыс.
Vite Crash Course | Faster Alternative To CRA
16:24
Просмотров 194 тыс.
ТЫ С ДРУГОМ В ДЕТСТВЕ😂#shorts
01:00