Learn Node.js – Full Tutorial for Beginners



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
⌨️ (1: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

source

This Post Has 36 Comments

  1. NoobCoder

    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.

  2. CURATOR

    How do we install npm version 7 or higher. If I install the latest node that is 14.16 or so then npm comes with 6-14!! Any suggestion?

  3. (0:32:06) I think there is a better and concise way of writing it. Correct me if I am wrong.

    rl.on('close', () => {
    console.log('Correct');
    });

    rl.on('line', (userInput) => {
    if (userInput.trim() == ans) {
    rl.close();
    } else {
    rl.setPrompt(`${userInput} is incorrect. Try againn`);
    rl.prompt();
    }
    });

    rl.question(`${num1} + ${num2} = `, (userInput) => rl.emit('line', userInput));

  4. Arpan Agarwal

    For all those who are using this tutorial from the point in time this comment is made and onwards: bodyparser module has been deprecated and its functionality included in the express() module. So, eg. one need not use bodyparser.json(), one can simply use express.json().

    In the section about Joi, Joi.validate() does not work anymore. One can now simply use schema.validate(req.body), store its value in a variable and check that variable(apparently, schema.validate() does not take any callbacks in which you can include the checks). 'schema' being defined as in this video.

  5. A PP

    These 3 hours were the longest night in my life but thank you! now I'll treat myself with some Russian vodka

  6. Linh Phan

    49:18 you can use:
    fs.writeFile('./tutorial/example.txt', '123', (err, data)=>

    {

    if (err) {

    console.log(err)

    } else {

    console.log('data, successfully created file)

    }

    });

  7. David WENG

    18:47 Why we need to use "super()" here? if I just let this._name= name; can I make Person._name=name and use the name in "on" method? which extends from EventEmitter.

  8. Bryan Capulong

    Everytime I try to learn from videos like these, I go from morning into sunset and would have only covered 1 hour (like right now)… I usually write notes on the side for future reference, while trying it myself on VSCode. Then I Google a question if I have any.
    How do I get faster XD

  9. Amos Bordowitz

    hey Pedro. Thanks for this!
    If I may: the word "query" is pronounced "Kwerry", not "kyurry". It just makes you suddenly sound a little less professional whenever you say the word.
    Also – & = "Ampersand"

  10. andraspoljak

    4:18 isntead of copying just write cmd there and the command prompt will pop up using the folder you are in

  11. pmellow

    I can follow your code and successfully executed the app, but I don't understand a thing, the tutorial kinda went too fast and show things that came out of no where.

    thanks anyway

    and anyone who got their bodyParser deprecated warning, it's because as of now Express (4.16+) has bodyParser built-in so you don't need dependency on body-parser module anymore

  12. Hey, im a CS Student and I have an internship right now, requiring me to learn Node JS for custom plugin development. Should I take a look at your JavaScript course before starting with this course?

  13. Simran Verma

    This tutorial is the best as he has explained all the aspects of node.js in this tutorial and it is best for beginners as well as who just have started learning node.js so hats off to you my noob coder!

  14. Barry Ward

    Very good course for people wanting to get started with node

  15. Anshul Manapure

    My ctrl+shift+p doesn't give Terminal: select default terminal option after typing default. What to do.

  16. Jona Prodenciado

    Hi coach, May I ask please! Doyou have a tutorial for the downloaded template project to import into visual studio? Thank you!

  17. Michaela Lippold

    Honestly been trying for days to figure out how node works and how to get it to be in a certain folder and finally got it all from just the first few minutes of this video. Thank you so much!

  18. Harsh Chaudhary

    At 22:25 he says its synchronous and hence executed in in order called. Would it have been different if it was async?

  19. Harsh Chaudhary

    Is there a mistake at 22:25, isnt the example he giving wrong it wouldn't matter if it's sync or async as the same function is being called.

  20. Game Videos

    Best tutorial in YouTube. Clear and precise with clean codes for beginners

  21. shreejit pal

    Everything was going great untill the moment you put in Jquery without even explaining anything. should've kept code restricted to js or explain more about… I went completely blank from that point onwards… also my CSS files are being refused to get accepted by the browser as MIME type error.

  22. xClayce -

    the part where you explain how to serve static files with express, i love this! was searching for an eternity to find someone who show me what im doing wrong. thanks.

  23. whatisthais

    2:05:45 I though res.json() returns a promise that resolves to a javascript object. In the video it is said that it takes JS and converts it into json. Can anyone clarify if the video is incorrect? Thank you and thank you once more to the author for making this fantastic video

Leave a Reply