How to Build a Web Server with Node JS | Node.js Tutorials for Beginners

preview_player
Показать описание


(00:00) Intro
(00:05) Welcome
(00:14) Overview
(00:28) Project Setup
(03:01) Import modules / dependencies
(04:33) A minimal server
(08:02) Two inefficient approaches
(11:06) Setting the Content-Type
(13:11) Setting the file path
(15:59) Make the html extension optional
(17:22) Does the requested file exist?
(18:18) Routing redirects
(22:48) Basic serveFile function
(25:17) Calling the serveFile function
(28:20) Serving JSON with the serveFile function
(30:25) Serving images with the serveFile function
(31:59) Sending a 404 status code
(32:56) Logging requests and errors
(35:51) Up and running with the web server

📚 References:

✅ Follow Me:

#node #nodejs #server
Рекомендации по теме
Комментарии
Автор

I don't know why I got to know about this channel a few days ago. You are a gem & all playlists are well structured. Thanks a lot sir 🙏

AdityaDey
Автор

Dave this is an excellent series!! Watched each video as it comes out! Please keep producing these excellent videos they are so beneficial!!!

jamesmassa
Автор

Excelent tutorial Dave!!! Thanks a lot for sharing!!!

elvispontes
Автор

Thanks Mr. Dave,

I have learnt a lot from you and recommended your videos to my colleagues.

fares.abuali
Автор

This is it. I want this level of clarity even if it is among the most basic ones. HatsOff bro. keep going

yogeshkhatri
Автор

I watched this video several times and I just want to keep press like 1000 time and it's not enough for your efforts <3

mostafahusany
Автор

I like to know how stuffs work and maybe this is why I like building things from scratch,
I might use Map instead of the extension switch but I know this is just an intro to node server so refactoring is not beneficial,

Great work as always my friend 🚀👍

ahmad-murery
Автор

I've made a wise decision to spend time on this YouTube channel. Thank you Dave.

leomacdon
Автор

learned so many things from this video 👍👍 thank you for this amazing series.

vikrambabariya
Автор

This is an awesome starting point. I would like to add websockets for an project I am working on.

noweare
Автор

Love all of these videos. Thank you so much!

moiraleon
Автор

Dave. You're amazing!! love your videos!!

아서-im
Автор

Thank you Mr.Dave For This Great Tutorials.

OmarMuhhammed
Автор

This is best example of node server I did watched!

kakhabervk
Автор

Wow!! speachless, This is really good. THANK YOU !

MrSalFav
Автор

1:39 why we extends EventEmitter and not use it independently

thebocksters
Автор

Hi Mr.Dave,
I have a question concerning the parse and the stringify part of this lecture. Would it have been better if we serve the json data without parse in it and stringify it again as long the readFile() for .json extension do that already and the receiver could parse and consume the data correctly?
by the way i can't thank you enough for all what you've done seen much content but you've a unique philosophy ( Tought you the right way of doing it ). Am sure your hard work will be remembered forever ☺.

iconicscene
Автор

This is a perfect Tutorial, Thanks man. And I have a question I hope I don't make you feel bad just asking How old are you ?

HOW-btet
Автор

Hey man, love your videos as a suggestion can you make a video or explain what is Cumulative Layout Shift (CLS) ?

chetanjain
Автор

You're Awesome, Thank you so much

Salma-qyqb
visit shbcf.ru