Node.js Crash Course

Поделиться
HTML-код
  • Опубликовано: 27 июл 2024
  • This is an intro to Node.js. No frameworks or libraries. We will look at a bunch of the core modules including building a server with the http module.
    Code:
    github.com/bradtraversy/nodej...
    Express Crash Course:
    • Express Crash Course
    Node.js API Masterclass:
    www.traversymedia.com/node-js...
    Timestamps:
    0:00 - Intro & Slides
    12:18 - Installation
    13:22 - Node REPL
    15:05 - Setup & package.json Init
    16:51 - Running JavaScript Files
    19:36 - CommonJS Modules
    23:13 - ES Modules
    27:20 - HTTP Module & Create Server
    35:06 - NPM Scripts
    36:15 - NPM Modules & Nodemon
    38:45 - .gitignore File
    41:06 - Environment Variables & .env
    44:00 - Req Object
    46:10 - Marking Requests From Postman
    47:28 - Simple Routing
    51:52 - Loading Files
    59:45 - Building a Simple API
    1:10:27 - Middleware
    1:13:24 - Cleanup (Middleware & Handlers)
    1:19:08 - Get Req Body For POST
    1:24:20 - File System Module
    1:33:43 - Path Module
    1:39:50 - OS Module
    1:42:13 - URL Module
    1:47:46 - Crypto Module
    1:54:08 - Emitting Events
    1:59:04 - Process Object
  • НаукаНаука

Комментарии • 212

  • @aayush_dutt
    @aayush_dutt 3 месяца назад +125

    Have been programming for 7 years in Node, will still watch this and I'll learn something new!

    • @jvenkatonline
      @jvenkatonline 3 месяца назад +1

      always something is there to learn or will get a new perspective on the same code.🙂

    • @srijansagar1250
      @srijansagar1250 3 месяца назад +1

      can u explain what new thing u learnt ?
      im just asking

    • @jvenkatonline
      @jvenkatonline 3 месяца назад

      @@srijansagar1250 If you watch the full video, something will be there - new to know.

    • @seyedatheeq4562
      @seyedatheeq4562 2 месяца назад

      Is this course enough for landing on a fresher node js job or internship?

    • @seyedatheeq4562
      @seyedatheeq4562 2 месяца назад

      ​@@jvenkatonlineIs this course enough for landing on a fresher node js job or internship?

  • @binayaacharya8281
    @binayaacharya8281 3 месяца назад +9

    Yess! Thank you brad. I needed a crash course on node and this dropped just at the right time.

  • @alexgordienko93
    @alexgordienko93 2 месяца назад +1

    brad just looked for nodeJS crash course ! thanks . did your old front to back & reactjs redux course and really enjoyed happy you back to creating courses!

  • @cassettte
    @cassettte 3 месяца назад +11

    You're awesome for making updated lessons like this.

  • @QuincyHyena
    @QuincyHyena 3 месяца назад +8

    I just finished watching your previous node.js course yesterday and here you are dropping a new one. im a bootcamp graduate looking for up to date learning material so i can catch up and you came in clutch! thank you!

  • @m24661
    @m24661 2 месяца назад +36

    Nodemon is no longer required. You can also use the in-built "--watch" flag with node command from node v18.11 and above.

    • @blkmlk
      @blkmlk 2 месяца назад

      you are right, tysm

    • @m24661
      @m24661 2 месяца назад +1

      @@blkmlk you're welcome bro

    • @DenzelHooke
      @DenzelHooke 2 месяца назад

      damn thanks man

    • @thewonderingworld9301
      @thewonderingworld9301 Месяц назад

      I am new how would I do this

    • @DenzelHooke
      @DenzelHooke Месяц назад

      @@thewonderingworld9301 add -watch at the end of your npm run dev command

  • @bartmeeus9033
    @bartmeeus9033 3 месяца назад +1

    Dang you back with another banger course, even i use node daily i still watch it because some little things you point to fill up the spots i didn't know about, GREAT COURSE!!!

  • @Valdaur
    @Valdaur 3 месяца назад

    This couldn't come at a better time since I'm looking at continuing on from a backend project I started a few months ago but haven't got around to completing it. So I really need a refresher. Thanks Brad!

  • @nadeem-cp9is
    @nadeem-cp9is 3 месяца назад +1

    omg, you read my mind , i was looking for node course for you and couldn't find something new so I thought what a shame bc I like the way you teach , and couple days later i see this video !! thanks

  • @dereklewis546
    @dereklewis546 3 месяца назад +3

    BRAD, YOU ARE THE ULTIMATE COMPUTER CODING GUY, I BEEN FOLLOWING YOU MANY YEARS, YOU TAUGHT ME NODE YEARS AGO, THANKS FOR UPDATES

  • @bl4ckshravi159
    @bl4ckshravi159 3 месяца назад +3

    Right when i needed it. Thanks Brad!!

  • @swaggitypigfig8413
    @swaggitypigfig8413 3 месяца назад +16

    Mr Traversy is back with another course 👊

  • @KwizeraCaleb
    @KwizeraCaleb 3 месяца назад

    I just finished watching your previous Node js course of 1 hour just few minutes ago, you added another hope this has much content than the previous

  • @cyborganic
    @cyborganic Месяц назад +1

    Thanks for this detailed updated video on node!

  • @mounir101
    @mounir101 3 месяца назад

    Thanks so much Brad for this brand new Nodejs crash course, it's really helpful.

  • @Fabio.T.outroconteudos-ul3pd
    @Fabio.T.outroconteudos-ul3pd 2 месяца назад

    Thanks Brad, good to keep the basics fresh in mind.

  • @YK_data
    @YK_data 3 месяца назад

    Good job. Appreciate it. It is good to see people still care about vanilla node js. The less framework and package, the better software.

  • @jjmichael3782
    @jjmichael3782 3 месяца назад +5

    A new node video just in time. Odin Project still has your node crash course video from 5 years linked.

  • @London2ATL
    @London2ATL 3 месяца назад +11

    My guy Brad 👊🏿. Just giving you a shout-out. Keep up the good work

  • @jimoholuwasegun9392
    @jimoholuwasegun9392 3 месяца назад +1

    Watching from Nigeria. Great crash course as always!

  • @misc10k
    @misc10k 3 месяца назад

    Can't thank you enough, Brad. This was excellent.

  • @eriikelnino6545
    @eriikelnino6545 3 месяца назад

    I enjoy this crash courses by Brad (First was React JS and now Node JS)

  • @muhammadans7071
    @muhammadans7071 3 месяца назад

    now waiting for your next crash course on express. bro i learned many from your channel. you a real js ninja. best of luck

  • @user-pt3hz6fi2x
    @user-pt3hz6fi2x Месяц назад

    many thanks for such a course, for as a newbie developer it saved a tremendous amount of time and effort, ty so much!

  • @rauldinho
    @rauldinho 2 месяца назад

    Great video Brad!

  • @ramortega
    @ramortega 2 месяца назад

    I am currently learning NodeJS and ExpressJS now and this is the best video that suit for my studies thanks man for your hardwork and dedication.

    • @mahaboobbasha3306
      @mahaboobbasha3306 2 месяца назад

      Bro in this video all node js topics are covered 🙄

  • @DragonFruit9k
    @DragonFruit9k 2 месяца назад

    thank you for this awesome refresher

  • @adeshinavictor3615
    @adeshinavictor3615 3 месяца назад

    Just finished learning the basics of react, but my next project requires some backend for authentication, cause I don't wanna get into tools like firebase etc,
    This course came right on time, I really appreciate this sir

  • @Dennis_here
    @Dennis_here 3 месяца назад

    Much needed tutorial sir ✨🔥

  • @Ipadstands
    @Ipadstands Месяц назад

    1:24:00 section on fs file and all the flavors of doing a file data read is a nice intro to sync, Call backs, promises, async await . especially for a newbie like me

  • @Truth__Nature
    @Truth__Nature 3 месяца назад

    Yesterday I finished the tailwindcss and started react and next needed a node js course and meanwhile him dropping this crash course ❤️

  • @jimparsons6771
    @jimparsons6771 3 месяца назад +6

    Brad it will be great if you can make a latest crash course on Docker in your style ❤

  • @ThanujaFernando-vu5dh
    @ThanujaFernando-vu5dh 3 месяца назад +1

    Brad is always good

  • @_hamzahmd_
    @_hamzahmd_ 3 месяца назад +1

    Great. Saving it for later.

  • @okkaraung9512
    @okkaraung9512 3 месяца назад

    You are a life saver. I love you, man.

  • @ProgrammingwithUmair321
    @ProgrammingwithUmair321 3 месяца назад

    Good work Brad 👏

  • @JamalKhan-dq4nz
    @JamalKhan-dq4nz 2 месяца назад

    I started learning html and css from you and i still believes that the enter into tech and getting my first job as frontend react developer is happened because of you. thank you. And I still believes that I will be fullstack because of you.

  • @sanjaybatak3549
    @sanjaybatak3549 3 месяца назад

    Massive love Brad 👏

  • @qaiseriqbal2696
    @qaiseriqbal2696 3 месяца назад

    we love you brad !

  • @HKOVENOM
    @HKOVENOM 2 месяца назад +6

    __dirname is back in Node.js with ES modules:
    import.meta.dirname // The current module's directory name
    import.meta.filename // The current module's file name

  • @chaudhrymuttaqeen1207
    @chaudhrymuttaqeen1207 Месяц назад

    Thanks man, really appreciate your efforts

  • @dilrukshiperera-yo5br
    @dilrukshiperera-yo5br 3 месяца назад

    Thank you. It was a useful video.

  • @Granta_Omega
    @Granta_Omega 26 дней назад +1

    1:55:36- Saying, "Goodbye, World." LOL. It sounds like you've had enough in life.

  • @funkdoc2001
    @funkdoc2001 2 месяца назад

    A ‘what js you should know before starting node & express’ course would be great! No DOM stuff etc

  • @muhammadans7071
    @muhammadans7071 3 месяца назад +1

    As usual outstanding ❤. You are the real js Cheetah 🐆

  • @chivicks_hazard
    @chivicks_hazard 3 месяца назад

    Brad is back ❤

  • @bhargavkumar
    @bhargavkumar 3 месяца назад

    Good refresher

  • @felixkuluchumila5262
    @felixkuluchumila5262 3 месяца назад

    Time To Start over again, thanks #Brad!

  • @akmayank856
    @akmayank856 2 месяца назад

    really needed it, thanx

  • @biggand8520
    @biggand8520 3 месяца назад

    There are also some core tools for zip and unzip, so to say, data, for instance before saving heavy data to the db. External tools can occurs stuck overflow, but core ones don’t

  • @afrazhussain3778
    @afrazhussain3778 3 месяца назад

    thanks for helping us alot

  • @ricardocnn
    @ricardocnn 3 месяца назад

    Awesome video! Waiting for the new Express.js Crash Course!

  • @thecodingchef9292
    @thecodingchef9292 3 месяца назад

    can't wait for the express crash course, thank you for this

  • @Rajesh-rg6fw
    @Rajesh-rg6fw 3 месяца назад +1

    Can you bring part 2 of this video where the advance things like worker thread,child process, memory management, streaming, like thing. That was mostly asked in the interviews.

  • @pavankumar-of4ew
    @pavankumar-of4ew 2 месяца назад

    Brad ! really you simplified my life, by teaching professional

  • @carolineloppi7867
    @carolineloppi7867 2 месяца назад

    Thanks a lot!! Great video!!

  • @codermeloman3030
    @codermeloman3030 2 месяца назад +1

    So good you don't use any frameworks. Thank you!

  • @reginold5988
    @reginold5988 3 месяца назад +5

    Express.js and MERN stack with typescript this time please

  • @ElonTusk..
    @ElonTusk.. 3 месяца назад

    Thanks Brad :)

  • @MohammadDLitoo
    @MohammadDLitoo 3 месяца назад

    awesome content Brad 🙏 would you consider make a crash course about FastApi as well ?

  • @Ipadstands
    @Ipadstands 2 месяца назад

    I like the video already after only listening for 5 minutes !!!

  • @aristide_F
    @aristide_F 3 месяца назад

    thanks a lot brad

  • @amosfigueira894
    @amosfigueira894 Месяц назад

    Hello, Mr Traversy thanks. very good crash course

  • @muhammedbojang5495
    @muhammedbojang5495 3 месяца назад

    Keep up the good job mentor

  • @NooglerNafiz
    @NooglerNafiz 3 месяца назад

    Thanks Brad.

  • @tonyvito5062
    @tonyvito5062 3 месяца назад

    Just Brad's voice relaxes me

  • @ways.
    @ways. 3 месяца назад

    You're amazing!

  • @cholo2605
    @cholo2605 3 месяца назад

    Thanks Brad!!!!!

  • @not_amanullah
    @not_amanullah 3 месяца назад

    this is helpful 🖤

  • @browsermage
    @browsermage 2 месяца назад

    Since I'm just re-entering the node ecosystem, this walkthrough is incredibly helpful. Do you think the --watch flag is too unstable since you are using nodemon?

  • @beynod_ordinary
    @beynod_ordinary 3 месяца назад

    Tech question: When we should be using Node/Express due to Async nature in compare to RoR, Laravel and other?

  • @alireza5430
    @alireza5430 2 месяца назад

    so hype for revamping EXPRESS crash course

  • @bmehder
    @bmehder 3 месяца назад

    This one's a banger.

  • @princesamuel3951
    @princesamuel3951 3 месяца назад +2

    Hey Traversy.
    Can you please revamp the Express crash course.? The one I found is about 6yrs old.
    PROTEST!!!
    I am not learning express until you release your new crash course.😂

    • @becom1ng
      @becom1ng 2 месяца назад

      An updated course was just release. :)

  • @dyaralatere
    @dyaralatere 3 месяца назад

    Amazing .. I'd Love to know what extension that is for postman

  • @tech_channel110
    @tech_channel110 3 месяца назад

    good work
    bring devops and cloud lectures also

  • @voldermort
    @voldermort 3 месяца назад

    The analogy is a masterpiece😂😂

  • @Ccoding_Life
    @Ccoding_Life 3 месяца назад +4

    i liked and downloaded the video without watching it since i fully believe that they always release highly supportive videos. um at library forgetting my earphone. that is why i didn't watch. show me the video value by like.....

  • @DanialToor-jb2hw
    @DanialToor-jb2hw 3 месяца назад

    amazing, will you be doing Express soon as well?

  • @Knock_O_ut
    @Knock_O_ut 3 месяца назад +1

    You are best 👍👍

  • @johnmahugu
    @johnmahugu Месяц назад

    Brilliant!!!

  • @Brianhu-y7l
    @Brianhu-y7l 8 дней назад +1

    I like your video. Can you tell which extension you are using when write node api?

  • @lindajazz6445
    @lindajazz6445 Месяц назад

    Beautiful man ❤‍🔥❤‍🔥

  • @lakshitsagar6299
    @lakshitsagar6299 3 месяца назад

    Hi Brad, Can we expect a HonoJS crash course? have been trying to dig through docs and there are no good tutorials. Docs were helpful but still need some more insights from someone experienced.

  • @riyadondiraitreda2819
    @riyadondiraitreda2819 3 месяца назад

    Hi bro! I watched your vidéo about doing a crud api with only nodejs and i like it thé fact that WE use only without express or other framework i felt intelligent wooow Can Do to us other vidéo exploring all fonctionnalité of vanilla nodejs

  • @Mike-df4ze
    @Mike-df4ze Месяц назад

    Thankyou so much, friend

  • @tarekt8571
    @tarekt8571 3 месяца назад +1

    YOU are a HARD MAN😁

  • @Ipadstands
    @Ipadstands Месяц назад

    1:22:00 That was magic in the createUserHandler code. I have not seen the req.on('data' and req.on('end' before.

  • @salmanfarshisajib6512
    @salmanfarshisajib6512 2 месяца назад

    Thank you.

  • @johnmahugu
    @johnmahugu 27 дней назад

    Yehehehehesssss!!!! pure nodejs :D thank you

  • @NovaRoma3162
    @NovaRoma3162 Месяц назад

    Brad, There is the watch flag in node version 20 and above, no longer experimental, that you can use instead of nodemon.

  • @likandokayombo
    @likandokayombo 3 месяца назад

    This is great

  • @LionhartM
    @LionhartM 2 месяца назад +1

    Anyone else having issues around 43:00 with the --env-file=.env? I'm getting an error that the option isn't supported. I researched it and found something that said to install dotenv, but still isn't working

  • @nithin9934
    @nithin9934 3 месяца назад

    hey brad, can you make one of these for angular, thanks.

  • @Gnajs
    @Gnajs Месяц назад

    In the file system module section, just writting writeFile() and readFile() one after another didnt work for me, I just got the "File written to..." logged. But it woked when I forced the order of the function exec with another async function:
    const main = async () => {
    await writeFile();
    await readFile();
    };
    Anywho, thanks Brad for the crash course!

  • @user-kn8jl1cw2x
    @user-kn8jl1cw2x 3 месяца назад

    May I ask why recently i keep encountered unable to verify leaf signature.. even just simple running an npm or running the next js app in local machine does it really need to configure the ssl in my machine even in local dev?

  • @Infotosalimprogramming
    @Infotosalimprogramming 3 месяца назад

    Thank u Big brother 😊💞 I like js💓💓

  • @_chris_6786
    @_chris_6786 3 месяца назад

    Thanks!

  • @cbbcbb6803
    @cbbcbb6803 3 месяца назад

    Thank you!

  • @smitprajapati9004
    @smitprajapati9004 9 дней назад

    which extension you use here, i don't get any suggestions while doing code, by the way it's interesting to practice first time on node js and explanation is very quite good enjoyed video. Thanks!
    !!