Complete guide for router and controller with debugging

Поділитися
Вставка
  • Опубліковано 18 лис 2024

КОМЕНТАРІ • 859

  • @sugarfreecode
    @sugarfreecode Рік тому +91

    5:23 We have 4 parameters: error, request, response, next

  • @dhanrajhuli2931
    @dhanrajhuli2931 4 місяці тому +21

    Anyone one learning from this series try to maintain a readme/ notes because you will not learn in depth in any other course.
    Me and my friend had purchased a MERN stack course from apna college before knowing chai aur code channel. After knowing about this channel we completed js , react and now doing backend and then we never touched that course. This is the best in depth course you will find anywhere..

    • @ek_hai_coder
      @ek_hai_coder Місяць тому

      Ya bro i also find this channel after the course but i got that from telegram.

  • @azeemdeveloper4815
    @azeemdeveloper4815 9 місяців тому +17

    mene pichle 3 years se youtube se study kr rha hoon or me buhut late ho gaya itna acche instructor and content ko dhondne me. mene kuch cource bhi liye DSA, MERN Stack lovebabbar channel se but mujhe jo Hitesh sir ka teaching ka style buhut zydaa accha lga or haan jo experience and maturity hai , i have no words. because itne kam time me itna zyada knowledge dena koi asaan ni hai. dilse word nikle aapke liye. top-notch

  • @ReDCODe_
    @ReDCODe_ 10 місяців тому +16

    Most valuable free content on UA-cam. ✌🏻✌🏻
    Your knowledge is worth a lot ,Thank you sir once again😎😎

  • @the_haryannvi_coder
    @the_haryannvi_coder Рік тому +5

    sir muje jb bhi kuch bhi debugging krni hoti h to sbse pehle aapki videos me se dekhta hu, bacause i know agar aapse padh liya, matlab sab crystal claer ho jaega. 👌👌

  • @priyanshsharma8411
    @priyanshsharma8411 Рік тому +37

    Http crash course was amazing and concise!!

  • @asmittyagi6250
    @asmittyagi6250 8 місяців тому +9

    Jy ho hitesh sir🙏🙏 , bhaut bhaut dhanywad sir .

  • @Faisal_89
    @Faisal_89 Рік тому +16

    lo bhai ageya , thanks brother, hope one day we will meet...

  • @nabeelkhan-dp2fc
    @nabeelkhan-dp2fc Рік тому +10

    Thank you Hitesh sir for doing so much for the developer community, I am really enjoying this backend series and I hope that this backend series covers the almost every thing of backend. love from Pakistan

  • @divyeshpindariya11
    @divyeshpindariya11 Рік тому +4

    ATTENDANCE - DONE
    thanks a lot, sir❤

  • @cse_29mdshahbaz55
    @cse_29mdshahbaz55 Рік тому +2

    I think this is the best series on youtube. Thank you very much. Bole to maza a rha hai. You are doing great work

  • @JeetuKumar-wd1uw
    @JeetuKumar-wd1uw 11 місяців тому +4

    Sir i watched your podcast with ranveer allihabadia show this podcast is very impressive for me i am also doing btech from Nit in electronics 😮 but i am more interested in coding rather than electronics

  • @tuhinghosh9737
    @tuhinghosh9737 3 місяці тому

    He is teaching the error debugging properly ❤
    What a content sir! Thank you ❤

  • @jashabantadas9783
    @jashabantadas9783 11 місяців тому +1

    Your videos are the savior that helps me sleep rather than banging my head on debugging. Thanks you so much.

  • @allyn3015
    @allyn3015 10 місяців тому +1

    Amazing video sir....I was thinking to complete this series by watching 1 video per day...but your teaching style convinced me for 2nd one and now going to watch next video also. So, 3 videos in 1 day, all thanks to you.🙏🙏. Hope to meet you soon❤

  • @mrehan98
    @mrehan98 11 місяців тому +1

    Most valuable free content on UA-cam.
    Thank you Sir. Your knowledge is worth a lot 😊

  • @poojalahane2584
    @poojalahane2584 6 місяців тому +1

    THANK YOU AGAIN SIR FINALLY I SOLVE MY ATLAS ERROR BY MY OWN WITHOUT ANY HELP .... JUST READ ERROR AND SOME EXPERIMENT I AM VERY HAPPY NOW JUST BECAUSE OF YOU............

  • @JatinnSharma
    @JatinnSharma Рік тому +1

    Thanks sir for not skiping error part its really helpful

  • @naveengupta157
    @naveengupta157 Рік тому +1

    Thank you sir,
    Mai aapke iss backend series ke har ek video ka wait karta rehta hoo.. Next video ke liye har ghante aapke channel pe aake check karta hoo notifications ki kab aayegi next video..

  • @KhushalMali-pf6fv
    @KhushalMali-pf6fv 8 місяців тому +18

    (err, req, res, next) => {}

  • @sobiikhan5868
    @sobiikhan5868 9 місяців тому

    amazing.... i just love your teaching method sir de great. too much love from Pakistan❣

  • @aryandixit8612
    @aryandixit8612 5 годин тому

    finally first postman requrest is done ,
    nice way to go !

  • @nikksanirudh
    @nikksanirudh 2 місяці тому

    I was watching a movie and getting bored, so I switched to this series and ended up coding along with you for three straight lectures. Usually, it’s the other way around but when it's chai and code, even Netflix takes a backseat! ;)

  • @LearnerAbhi21
    @LearnerAbhi21 7 місяців тому

    nice... going revision nice... it feels nice when you getting understanding easily as i watched it already 1 time ... hehe 11 April 2024

  • @sehajdeepsingh7427
    @sehajdeepsingh7427 9 місяців тому

    I encountered a few errors more than what you were facing, some typos type and a few missing lines of code.
    But you inspired me to search through my code and find the error, instead of just copying all the files from your repo.
    Thanks Sir for this valuable content.

    • @Mubashir7933
      @Mubashir7933 9 місяців тому

      I'm facing so much errors can you tell me how to fix them?

    • @sehajdeepsingh7427
      @sehajdeepsingh7427 9 місяців тому

      @@Mubashir7933 Sure brother. Tell me where are you facing issues?

  • @riteshmauryafullstackdevel3753

    Your teaching style is very unique sir❤

  • @Only-Gaming775
    @Only-Gaming775 11 місяців тому

    Your teaching style is very unique

  • @vipulyaduvanshi166
    @vipulyaduvanshi166 Рік тому

    I Directly start back end with this video😅 samj ayaa thora thora 😮🤩love its much understand able then other video's now I am going to start with video one😅

  • @ajuabraham7527
    @ajuabraham7527 10 місяців тому +1

    #chaiAurCode sir you explained in very simple and concise manner thank you

  • @developer_dhanji
    @developer_dhanji 6 місяців тому +1

    incredible tutoral , most loved video forever chai aur code only ❤❤

    • @chaiaurcode
      @chaiaurcode  6 місяців тому +1

      Many many thanks☕️🤣

  • @forexspectrum4799
    @forexspectrum4799 Рік тому +3

    Most awaited series thanks a lot sir❤

  • @Code_with_Hardip
    @Code_with_Hardip 4 місяці тому

    Proud to be ❤ Hitesh Sir Student.. Thank you very... Much god...😢😢😢

  • @Abdul_Wajid
    @Abdul_Wajid Рік тому +4

    Thank u so much for the detailed videos, I'm already a junior backend developer but learning too much from ur videos.. May Allah bless you 💞🙏

  • @arghya_0802
    @arghya_0802 10 місяців тому +1

    Felt really surprising and bad that the like target is not yet achieved it!! Hoping that it completes to 1.5k very soon, will share as much as possible from my side!! Great content as always sir😇❤
    5:24 - Express has the following 4 things: (error, req, res, next) --> Next acts as the flag for middleware

  • @Dev-Phantom
    @Dev-Phantom 7 місяців тому +1

    Best Lecture as always. Thanks sir

  • @jigarpandya3312
    @jigarpandya3312 Рік тому

    best series in the world.. thank you so much sir

  • @mayabisht4063
    @mayabisht4063 Місяць тому

    Code with chai is awesome youtube channel

  • @adityaprasadsahoo924
    @adityaprasadsahoo924 Рік тому

    Sir appse padhne ka maza hi kuch aur hai ,you are awesome sir ! 💯

  • @RealEstateandTechnology
    @RealEstateandTechnology Рік тому

    really your style of teaching is unmatched ... Great work !!

  • @tgrpolai
    @tgrpolai 7 місяців тому +1

    sir itna {ADVANCE CHIJE} hamre surat me 80000/- FULLSTACK course me sikhte he AUR AAP FREE ME THANK YOU SO MUCH 😊😊😊😊😊😊😊😊

  • @AnkitKumar-ph6if
    @AnkitKumar-ph6if 9 місяців тому

    Initially I didn't understood the async handler part but now it's clear. With all due respect I suggest that, you can define or create some stuff while they actually come in need. So that it would be better to understand. Thank you.

  • @guptasagar694
    @guptasagar694 6 місяців тому

    Thank you sir, You are GOAT (Greatest of all Time)- Hindi Tech Teacher

  • @Ganesh-fk4wc
    @Ganesh-fk4wc 10 місяців тому

    Thanks @Hitesh Enjoying chai and code backend series😊

  • @pranav1401
    @pranav1401 10 місяців тому +1

    Thank you for providing such high-quality content on UA-cam. I am really excited for the JavaScript backend course.. #ChaiaurCode

  • @FinnBalor-q9b
    @FinnBalor-q9b 8 місяців тому

    love from Pakistan, a teacher with different method 🥰🥰🥰🥰

  • @ahsanaqueel1182
    @ahsanaqueel1182 Рік тому +3

    eagerly waiting for video
    its finally here now😍

  • @yvdipesh1714
    @yvdipesh1714 2 місяці тому

    thank u histesh sir for making this video in depth

  • @Tharun-cu4yi
    @Tharun-cu4yi 6 місяців тому

    Thank you for this series, this series has been a game changer for me

  • @utkarshkrishna.youtube
    @utkarshkrishna.youtube 10 місяців тому

    I'm really loving this backend series..😁

    • @chaiaurcode
      @chaiaurcode  10 місяців тому

      Glad to hear it!😊☕️

  • @rendevous9253
    @rendevous9253 Рік тому +2

    Best video on controller

  • @RamdeepKesharwani
    @RamdeepKesharwani 10 днів тому

    Enjoyed the series Please make a full stack unique project please

  • @Ahmed-tz2wh
    @Ahmed-tz2wh Рік тому

    Sir wellcome back acha lagta hai aap ki video ka wait kar ka god bless you ma na aap ko dil sa best teacher Manta hu

    • @chaiaurcode
      @chaiaurcode  Рік тому +1

      Dhnywad 😊🙏

    • @Ahmed-tz2wh
      @Ahmed-tz2wh Рік тому +1

      @@chaiaurcode mera dusra comment ka bi answer karna plzzz

  • @gojosatoru988
    @gojosatoru988 Рік тому +1

    Love your teaching style 😊❤

  • @saddamxxdevil8446
    @saddamxxdevil8446 Рік тому

    👍 well, hitesh sir I'm big fan of you from Gujarat

  • @TW-uk1xi
    @TW-uk1xi 10 місяців тому

    thanks for making things clear and deep.

  • @GuruPrasadSS-g1p
    @GuruPrasadSS-g1p 2 місяці тому

    learning on 16-sep-2024
    thank you for ever !

  • @ashishchakravarti
    @ashishchakravarti 10 місяців тому

    I liked video before watching it coz i know it's best in ERa

  • @tipssedlife
    @tipssedlife 11 місяців тому

    Hitesh, you are such a great mentor 🔥

  • @lalitsingh-de1md
    @lalitsingh-de1md 2 місяці тому

    thanks and love you sir for your valuable content💖💖☕☕

  • @powercircuitacademy
    @powercircuitacademy 11 місяців тому

    Ab kya hi kha jay sir ❤ mza aa jata h love you❤

  • @usmanrana8427
    @usmanrana8427 Рік тому

    You are an actual teacher.

  • @devsinfire
    @devsinfire 10 місяців тому

    Loved the way of explanations ❤

  • @lovely-twin2022
    @lovely-twin2022 8 місяців тому

    one of the great playlist thanks a lot sir

  • @publicsolutions492
    @publicsolutions492 8 місяців тому

    very nice video, following your backend series.

  • @aminjan5480
    @aminjan5480 Рік тому +1

    most amazing series...thanks sir

  • @anandstephan6020
    @anandstephan6020 9 місяців тому

    very good video sir thanks for production grade quality

  • @Render_Gaming07
    @Render_Gaming07 19 днів тому

    MAZaa aa gya sir op.. thunderclient

  • @silentHunter123
    @silentHunter123 5 місяців тому

    19:20 i was using typescript and it automatically gave me this error, saved a bit of time :)

  • @the_haryannvi_coder
    @the_haryannvi_coder 11 місяців тому

    16:53 debugging video me rakhte ho aap sir, isse mindset shi banta h students ka

  • @MuhammadYasir-cl4jp
    @MuhammadYasir-cl4jp Рік тому

    Thank you so much sir for bringing a high quality content❤❤

  • @huraiah821
    @huraiah821 9 місяців тому

    on of the best backend series 👌

  • @FlyingTrash
    @FlyingTrash 10 місяців тому

    Really grateful of you for doing this.

  • @NOT_TON_Fan
    @NOT_TON_Fan Рік тому +1

    Aur videos daliye sir, maza aa raha hai...

  • @neerajdhakad2858
    @neerajdhakad2858 Рік тому +8

    Video like kr do bhai log , target complete ni hua abhi tk

  • @LearnAlongFaizan
    @LearnAlongFaizan 10 місяців тому

    Great Series, thank you so much sir,

  • @ravishbisht502
    @ravishbisht502 Рік тому

    Samaj to agya ha muje bs vo asyncHandler ne dimag ki dahi krr rakhi ha abi😂❤

  • @piriyanshu583
    @piriyanshu583 10 місяців тому

    sir ek bar asyncHandler func kaise kaam rha h bta dijiyega, means how the control is flowing in asyncHandler , (Req,res, next ) yesb bhi. bs ek baar aur discuss krlete toh badhiya rehta

  • @MayankSharma-vi1ok
    @MayankSharma-vi1ok 10 місяців тому

    Really Excited for The great Backend Course #ChaiaurCode

  • @sushantsharma9636
    @sushantsharma9636 9 місяців тому

    sir this problem with async handler, i had it for so long in my previous projects too whenever i tried to make my own custom asynchandler so i had to use the npm asyncHandler package. thank you sir for resolving this issue

  • @SameerMalik-dm1sk
    @SameerMalik-dm1sk Рік тому

    Most awaited series video, Thank u sir

  • @krishnnarayan6239
    @krishnnarayan6239 10 місяців тому

    #ChaiAurCode , Thankyou sir for providing quality content..

  • @devanand4269
    @devanand4269 11 місяців тому +1

    Thank you sir once again💗💗

  • @FinnBalor-q9b
    @FinnBalor-q9b 8 місяців тому

    my steps:
    1: first of all make form in ejs,
    2: then set action,method and username in that,
    3: after that i put post routes for getting data from user
    4: in that use req.body to extract data from front end and store in data base
    5: for login again , i will fist use bcrypt to secure password then through bcrypt i will compare the password so if password matches then user can login.
    6: also use some code e.g res.redirect to move user from sign page to profile page after sign up.
    7: and then use/make a function through which I some logic in which user first check if user is logined already then we catch user before moving to profile page.

  • @hungryman6711
    @hungryman6711 8 місяців тому

    got error more than you and fixed it it was really frustating to confusiont to relaxing journey alll thank to you bhaiya❤❤❤❤

    • @monikabasene2908
      @monikabasene2908 6 місяців тому +1

      i am also facing some issue can you help me with that
      my postman is not showing the content it showing some error such as 'Binary file load error: invalid or missing file source'
      POST localhost:3000/api/v1/users: {
      "Error": "connect ECONNREFUSED 127.0.0.1:3000",
      "Request Headers": {
      "user-agent": "PostmanRuntime/7.37.3",
      "accept": "*/*",
      "postman-token": "d8e144df-3d61-4b3d-824c-46ed2605530b",
      "host": "localhost:3000",
      "accept-encoding": "gzip, deflate, br",
      "connection": "keep-alive"
      },
      "Request Body": "{ value: null }"
      }

  • @MHPavel-p3c
    @MHPavel-p3c 8 місяців тому

    http crash course helped to understand the things in this video as well

  • @ruturajbhandari7695
    @ruturajbhandari7695 5 місяців тому

    Amazing vid as always, Thanks for such quality content

  • @SarthakArora-i3j
    @SarthakArora-i3j 5 місяців тому

    best course hands down

  • @Omarfaruk-wq5hl
    @Omarfaruk-wq5hl 7 місяців тому

    Best video on controller

  • @Brogamingbg
    @Brogamingbg Рік тому +1

    thank you sir for your course with ♥

  • @aniksaha8108
    @aniksaha8108 8 місяців тому

    Thanks for this playlist Hitesh Sir

  • @friendsrock3895
    @friendsrock3895 3 місяці тому

    Great teacher💌

  • @ravirathore6717
    @ravirathore6717 10 місяців тому

    Very nice explanation sir ❤

  • @bhuvansingh4375
    @bhuvansingh4375 Рік тому

    Here comes an amazing content from an amazing mentor❤❤

  • @adityasinghchouhan3670
    @adityasinghchouhan3670 9 місяців тому +1

    Great lecture

  • @HarishGGU
    @HarishGGU 7 місяців тому

    awesome sir. thanks for sharing knowledge.

  • @coding1202
    @coding1202 10 місяців тому +1

    #ChaiAurCode....... Sir you are the best teacher for me...and i really wanna learn backend from you, but i'm a 11th class student, i can not pay 7k rupees... plz sir i really want this backend course🙏🙏🙏🙏🙏i promise i'll pay your fees as soon as i start earning from web development....

    • @ashtonronald
      @ashtonronald 10 місяців тому

      started early, good for you!

  • @sarowar-fd8ud
    @sarowar-fd8ud 11 місяців тому

    hansi koise he up shabi.......Love

  • @SarveshKumar-08
    @SarveshKumar-08 Рік тому +7

    00:06 How to write controllers and build logic
    02:02 Creating a new file inside the controller
    05:57 Creating a router for handling user routes
    08:15 Importing routes and controllers in a production-grade setting
    12:31 Creating a URL with a prefix for routing
    14:28 Understanding router setup and execution in an application.
    18:16 Debugging a higher order function in router and controller
    19:58 The issue was resolved by removing an unnecessary 'return' keyword
    23:53 Using Postman to send a GET request to the 'register' route leads to an error
    25:38 Understanding the different HTTP methods and their meanings.
    28:58 Postman is a complex tool with internal details and server errors.Here's a clearer version of the text.

  • @mohsinzia8566
    @mohsinzia8566 2 місяці тому

    really excited for this series!

  • @Ofcl-Javed
    @Ofcl-Javed 10 місяців тому +1

    At 12:26 I got confused like When i studied a API a year ago I also created router but i use it like router.get() or router.post() I never heard of .route method So I thought asking you about it in the comment but Then I thought that's not how I am going to be a good developer and I'll be stuck in this tutorial hell so I went for express docs (Yes I learnt how to read docs from you 😁), and I find out that route method allows us to chaining the route on the common path and also helps in using common middleware on all route in that router so While in case of normal methods If the route were common I have to repeat the path