DEV Community

Cover image for Part 5: Building a Simple Web Server with Node.js

Part 5: Building a Simple Web Server with Node.js

Dipak Ahirav on May 04, 2024

๐Ÿš€ Check Out My YouTube Channel! ๐Ÿš€ Hi everyone! If you enjoy my content here on Dev.to, please consider subscribing to my YouTube channel...
Collapse
 
lirantal profile image
Liran Tal

I appreciate the education here about Node.js basics but there are also quite some security issues with the above code. It's functional, sure, but also vulnerable, so worth calling out ๐Ÿ˜…

I'm doing a lot of work to educate developers on secure coding practices in Node.js (via nodejs-security.com/) so I am sensitive to these sort of tutorials.

Collapse
 
eteimz profile image
Youdiowei Eteimorde

I really love it when the fundamentals are being taught before jumping into frameworks like express.

Collapse
 
dipakahirav profile image
Dipak Ahirav

Thanks

Collapse
 
dwivedys profile image
Saurabh Dwivedy

True

Collapse
 
gauharnawab profile image
gauharnawab

You explained with great explanation, Thankyou

Collapse
 
dipakahirav profile image
Dipak Ahirav

Thank you so much @gauharnawab for your kind words and feedback! ๐Ÿ™ I'm thrilled to hear that you found the post helpful. Your support means a lot to me. If you enjoyed this post, please consider subscribing to my YouTube channel devDive with Dipak for more content. Donโ€™t forget to share it with your friends and help spread the word. Your support helps me to continue creating valuable content. Thanks again! ๐Ÿ˜Š

Collapse
 
asadsaleh profile image
AsadSaleh

Nice to not jump immediately into frameworks

Collapse
 
ubeyidah profile image
ubeyidah

try express.

Collapse
 
shifi profile image
Shifa Ur Rehman • Edited

There is a high chance if he can write a plain html http server he can do it with express too.

However this approach is much much better than using express (with some drawbacks yes). e.g. this is a module leas script. It means there is no package manager, no node_modules etc. its a plain script you can just node script.js to run with little overhead. Not to forget the immense control because of the barebones nature of this approach as well. The obvious con is performance and developer experience.

Collapse
 
snuggs profile image
Ahmid-RA

Try being a new dev again.

Collapse
 
dipakahirav profile image
Dipak Ahirav

Join this group for more updates : FullStackLearners

Collapse
 
dipakahirav profile image
Dipak Ahirav

Next Part -> PART - 6