Node.js is an open-source, cross-platform JavaScript run-time environment that executes JavaScript code outside of a browser.
Learn all about Node.js in the full course for beginners.
🔗Install Node.js: https://nodejs.org/en/
🔗Install Visual Studio Code: https://code.visualstudio.com/
⭐️Course Contents ⭐️
⌨️ (0:00:00) Installing Nodejs
⌨️ (0:05:22) Working With Modules
⌨️ (0:14:40) The Events Module and EventEmitter Class
⌨️ (0:22:32) Working With The ReadLine Module.
⌨️ (0:34:36) Working With File System Module (Creating,Reading,Deleting,Renaming) Files
⌨️ (0:45:04) Working With File System Module. Creating and Deleting Folders
⌨️ (0:57:36) Working with Readable and Writable Streams
⌨️ (1:02:40) Why you should use Streams
⌨️ (1:05:41) Pipes and Pipe Chaining. (Readable,Writable and Transform Streams)
⌨️ (1:12:36) Creating a Http Server using the Http Module
⌨️ (1:17:52) Serving Static Files with Http and File System Module (html,json,image)
⌨️ (1:24:30) Create our Package.json using Npm Init
⌨️ (1:27:18) Installing Packages using Npm (Node Package Manager)
⌨️ (1:32:23) Semantic Versioning
⌨️ (1:36:42) Getting started with Express Web Framework
⌨️ (1:40:48) Working with Express Http Get Request, Route Params and Query Strings
⌨️ (1:49:52) Serving Static Files with Express
⌨️ (2:54:36) Http Post Request with Express and Body Parser Module
⌨️ (2:00:17) Working with JSON Data with Express and the Body Parser Module
⌨️ (2:07:40) User Input Validation With Express And JOI
⌨️ (2:15:24) User Input Validation with JOI Validating Nested Object and Arrays
⌨️ (2:22:34) Getting Started With EJS Templates With Express
⌨️ (2:35:22) How does MiddleWare Work and Creating Custom Middleware
⌨️ (2:42:49) Working With The Express Router
Tutorial from NoobCoder. Check out the NoobCoder YouTube channel: https://www.youtube.com/channel/UCV9MhzHCMx0Y83b5F8HWv-Q
—
Learn to code for free and get a developer job: https://www.freecodecamp.org
Read hundreds of articles on programming: https://medium.freecodecamp.org
And subscribe for new videos on technology every day: https://youtube.com/subscription_center?add_user=freecodecamp
Original source
46 responses to “Learn Node.js – Full Tutorial for Beginners”
I Would just like to thank FreeCodeCamp for giving me the honor of having my video on here.
If you guys have any questions what so ever feel free to ask me on my youtube channel.
https://www.youtube.com/noobcoder
Or post your questions here. I'll come here every so often to try to answer as many questions as possible.
Just don't ask me to do your homework is my only stipulation XD.
Great video to watch at 1.5x speed, the talking pace was a bit slow. Good content though.
Many thanks for the long tutorial. It was perfect, except you could have not zoomed it so much as a much smaller font would have be easily readable and we could have benefited by seeing the whole page rather that scrolling up and down. Also it would have been better if the Dev Toll panel was on the right rather than the bottom.
Thanks again
Thank you so much man. God bless you.
4:29 another trick to do this is going to your requested path, and type cmd where the file location is and hit enter 🙂 this opens a cmd in the current directory ur in.
note for beginners , from Iraq :
require (es5 and down) = import (es6 and up)
module.exports (es 5and down) = export (es and up)
and there is no es6 engine so you already use require and module.export under the hood
Best nodejs tutorial ever!
I try to install nodemon but i get some errors
anyone have any issues when trying to run on localhost:3000 on the second piece of code he does with the '/' being introduced? My pc spends ages loading just to show a blank screen
Great video! Very useful! Thank you 🙂
It says tutorial is not a function
I totally recommend this video!!! Thank you for teaching Vanilla node.js !!
Best tutorial that what do i say…………
Awesome tutorial.
I had an issue while trying to make use of the "path" module. Non of my external files was served, just the index.html files. how do i debug this issue please…
this is very inforamtive and very clear. Thank alot.
Hey, nice video about the readline module. If you enter Ctrl + C in the command line it triggers the rl.on("close") event, and then go on saying you are correct. I think you can correct this by creating a child class and editing the close event call back and you can pass a parameter to know where it was fired from. Get it??
Great tutorial, thanks much 🙂
Truly great course
04:23
you are just coding but you are not giving knowledge very bad video
re: "rl.question(`What is ${num1} + ${num2}? `," (line number 8)
It took me 3 hours to figure out why it is printing "What is ${num1} + ${num2}?" instead of "What is 4 + 11?" (whatever the random numbers). Then I put my eyes closer to the monitor of my laptop and noticed that I should use (`) instead of ('), the former is on the leftmost of the keyboard, while the latter is below the double-quotes. What makes the difference? I almost gave up.
This course is very good. However not everything is explained. So, I suggest you to go over the node tutotials on w3schools and then watch this. Your concept will 200% clear and you might start calling yourself a node.js dev. Good luck mates!
if ' What is ${num1} + ${num2}?' prints out the string without the variables its because you need to wrap the string with “(usually in the ~ button) and not ' the regular single qoutation mark ' '
just thought it might shorten someone time…
thank you (:
well, it is good that the code is readable.We can see every thing;
If someone struggles with error "ValidationError: child "email" fails because ["email" is required]" at around 2:14:00, this code will help:
let object = {};
req.body.forEach(element => {
object[element.name] = element.value;
});
So 2:00:17 – what is the benefit of preventing sending data via default submit post method, and rewriting it into ajax request?
Very usefull video. It covers most importants arguments, great!! Thanks! (why he's making a video course at 4.10 AM(?!)) funny…
I thought it was videogamedunkey at first
I wish you'd somehow reduce the text size and closed the terminal if not being used. It was hard keeping track when you only see 5-6 lines of code in preview. Nonetheless, it was pretty great and pretty clear.
Will I be able to make a backend server after watching this tutorial?
Thanks Sir, this was really helpful
I've been using node for quite a while, but this is a very helpful refresher. Thank you!
not getting output in console.log("hello world") do I need a localhost server
57:36
There is a misspelling at 1:27:18
It would help a lot if there was a link to all these exercises on GitHub.
I love the voice!
Thank you very much for this tutorial, helped me a lot to get started, didn't stop for anything, very well explained!
what to do when i have not visual studio?
Hi pedro, i'm sorry before for ask this question. When i'm hit ctrl B in minutes 58:28, nothing happened, no file example.txt created, what happened? Thank you for your answer.
great video! Are there any other server side validation packages as joi is deprecated?
Hello, Thank you for sharing video. Could you please share the code on Github so we can download it.
Awesome video
Thank you for the great video!
Hey guys when you get to this part `what is ${ num1 } +${ num2 }? n`, don't use the regular apostrophe. if you wan to include a variable in your string use the key to the left of number one. i missed when he said that. I will be leaving solutions to problems i find in comment replys to this one. please check them out.