Writing update controllers for user | Backend with JS

  Рет қаралды 59,084

Chai aur Code

Chai aur Code

Күн бұрын

Пікірлер: 1 000
@himanshuchuchra
@himanshuchuchra Жыл бұрын
Hitesh sir, saw your post on "Re thinking to backend series", sir please don't stop. I found only single channel on youtube who teaches amazing and in-depth. Many people are loving this series. Really looking after how professionally we build the complete project. Hope that you will continue. Thanks ♥
@sumangalammishrashines6412
@sumangalammishrashines6412 3 ай бұрын
regarding what he said @14:10 he said if the user is able to change the password user must be logged-in which is true. then he said how he would be logged-in because middleware has been used. but at the time of logged that particular middleware(auth.middleware.js) has not been used. it was used just before logout as the code is "router.route("/logout").post(verifyJWT, logoutUser)" and here verifyJWT was exported from the middleware auth.middleware.js hence it was used just before logout. since until we are logged In and we have not proceed for log out we wont get this middleware.
@sukunademonking07
@sukunademonking07 Жыл бұрын
Hitesh just saw your broadcast post "Re-thinking to continue backend". Please don't stop this series as it is really important for people like us who wish to do full stack (your react and this backend)... It's my humble request😢😢 I'm looking forward to how you integrate stripe payment and google oauth in production and how we secure and scale our backend.. Currently I'm doing your react series and keeping tap of your backend series (the titles and not watching them as of now). I will watch the series after I'm done with react. Again please don't stop😢😢 Just a small gratitude from my end. I hope this message will motivate you❤❤❤
@honesmartyy
@honesmartyy Жыл бұрын
Actually sir, we r not with the pace of the videos we r getting, I am lagging behind in learning., So at least me I am learning react then backend I will start and learn and finish it.
@sufyanali837
@sufyanali837 Жыл бұрын
#chaiaurcode
@sukunademonking07
@sukunademonking07 4 ай бұрын
@Aaayushgtm sorry shaktiman
@abhinavdubey_7
@abhinavdubey_7 10 ай бұрын
Thanks! Bhaiya ji i am student at Surat. i love these videos this a small gift from my side happy Basant panchami ( Maa Sharaswati Pooja 🙏🙏🙏🙏) ❤❤❤❤
@neerajdhakad2858
@neerajdhakad2858 Жыл бұрын
Don't stop this series , please we are learning alot form this backend series
@mahakaalgaming25
@mahakaalgaming25 Жыл бұрын
pls don't stop uploading, Pls complete this series. mujhe ko dsa to bhut log padha denge. But Backend development koi aap jaisa ni padha payega. sir we seriously need development teacher like you❤. No one can replace you, and also your benchmark quality content no one can even match. I personally feel, Hume aap jaise development teacher ki need h jo hume help kre industry ready hone me❤. Pls re think about this. I hope you understand our situation❤. Hume hindi me aisa development content sirf aap hi de sakte h❤. pls stay on development mode.
@letsdolifebeautiful5446
@letsdolifebeautiful5446 Жыл бұрын
i have completed javascript series . now i am in react . after it i wil come to backend . sir we assure you it will be one of top coding channel in upcoming days. stay motivated ! upload video fast till i complete and practice react . i will be ready for complete backend series😃😃😃😃
@Prince-hy9ng
@Prince-hy9ng Жыл бұрын
Hey bro are u complete beginner?....my concepts are clear in js but didn't know how to tackle interview questions of js any guide what I do to strong our js concepts?.
@itsYourType313
@itsYourType313 Жыл бұрын
In ower IT filled you should learn any language in two different ways one four your understanding and second four interview :) believe yourself and just practice 15-20 day for interview only..🧑‍💻 you can do it
@afzalvepari313
@afzalvepari313 Жыл бұрын
#chaiaurcode
@engineeringlife4567
@engineeringlife4567 3 ай бұрын
​@@itsYourType313right 👍
@baruntiwary31
@baruntiwary31 Жыл бұрын
Sir, you are an amazing teacher. I am creating software for my startup by learning production-grade backend from this series. Pls not delay the videos
@kratinsoni4840
@kratinsoni4840 11 ай бұрын
i dont think any series on youtube of backend comes even close to this series in backend this series delivers content that even paid courses find difficult finding myself really fortunate to learn this type of content just amazing and i heartly express my gratitude to guruji
@ashutoshsabale
@ashutoshsabale Жыл бұрын
I just wanted to take a moment to express my sincere gratitude for the incredible industrial knowledge you share on your channel. Your videos have been an invaluable resource for me, providing insights and understanding that I couldn't find elsewhere. The way you break down complex industrial concepts and explain them in a clear and engaging manner is truly commendable. Your passion for the subject shines through, making learning not only informative but also enjoyable. I appreciate the time and effort you invest in creating such high-quality content. It has made a significant impact on my understanding of Backend, and I look forward to each new video you release. Thank you for being a guiding light in the realm of industrial knowledge. Your dedication to educating and empowering your audience does not go unnoticed.
@suchakbarik-0812
@suchakbarik-0812 Жыл бұрын
Please don't stop this series... Currently I'm doing an internship so I'm not getting much time but I'm planning to complete this series to become a full stack developer. Please keep it coming.
@webfnatic
@webfnatic 11 ай бұрын
Error = line 257 - .json(new ApiResponse(200, req.user, "User Fetched")). Very well explained sir! #chaiaurcode #backenddevelopment
@vishal-shinde
@vishal-shinde 5 ай бұрын
Amazing Video as always. I am rewatching it second time. I had to stop due to college, now that it's over, I am determined to finish the Course
@afzalhamdulay
@afzalhamdulay 7 ай бұрын
maza gaya dekh ke. bohot dimaag khul gaya ki kaise user details ke controllers banaye. dil jeet liya❤
@piriyanshu583
@piriyanshu583 Жыл бұрын
u literally have made me an enthusiastic developer , skills can be learnt from anywhere but, to ignite the passion and interest in students should be the ultimate goal. highly grateful for your teachings
@Neerajkalyan3367
@Neerajkalyan3367 Жыл бұрын
your series gives us more confidence on javascript. Thanks for all you are doing for us.
@Agastyasharma-j3c
@Agastyasharma-j3c Жыл бұрын
Please don't stop the series sir, it is very helpful for me, upload the video late it's alright but don't stop it, I'm learning so much from it
@premranjan1757
@premranjan1757 Жыл бұрын
thank you sir for this amaging indepth backend series ,really loving the way you are explaining every concepts in depth and is excited for the next upcoming videos
@avinash3701
@avinash3701 Жыл бұрын
Sir, after learning from you, the first thing I gained was confidence. Secondly, whenever I encounter other code, it consistently reminds me of the proper way it should be structured. I've seen significant improvement, and I owe it to your guidance. Big thank you!
@shashanksharma136
@shashanksharma136 Жыл бұрын
Sir, Great video. All i want is to learn. Please be consistent again. Thanks a lot for this series.
@suryapratap_bit
@suryapratap_bit Жыл бұрын
Sir just seen your Whats app post that people aren’t watching this amazing series. I have also missed some due to wedding season. Next Christmas then new year. I think people will start watching and learning from this series once new year gets started.
@ridamsinghal1073
@ridamsinghal1073 Жыл бұрын
Sir, I will say it is the number one channel for learning programming.
@navneetkumarsharma9092
@navneetkumarsharma9092 Жыл бұрын
Awesome series, I have never encountered this level of production quality training in any course, Please keep it up
@saurabhsinghverma4027
@saurabhsinghverma4027 Жыл бұрын
Unique series on KZbin in Backend development
@wasifurrahmanefaz4216
@wasifurrahmanefaz4216 Жыл бұрын
Your teaching style goes beyond the conventional. You don't just educate; you inspire curiosity and create a framework for effective teaching. Every teacher should adopt your teaching approach. Grateful for the unique perspective you bring to education! Love form Bangladesh💝
@mitvavirvadiya8993
@mitvavirvadiya8993 Жыл бұрын
Sir is being consistent again, loving your backend content and always eager to learn more from you
@akshat-09
@akshat-09 Жыл бұрын
@chaiaurcode just saw the message on your WhatsApp channel about continuing the backend series. I have recently completed the *Javascript* series & currently on *React* series. Please do not stop the backend series. Will watch the backend series after that. The content quality is unparalleled. We will try to support you in whatever way possible 🙏🏼🙏🏼
@sahilgupta7001
@sahilgupta7001 5 ай бұрын
35:00 Sir in this function we should have deleted the old avatar from cloudinary also, those who are interested ask chatgpt about it and you can add it on you own in the cloudinary file // add this func to cloudinary const deleteFromCloudinary = async (publicIdOfFile) => { await cloudinary.uploader.destroy(publicId, (error, result) => { if (error) { throw new ApiError( 500, "existing file could not be deleted from cloudinary" ); } }); }; dont forget to export it
@sameerraj5800
@sameerraj5800 5 ай бұрын
Hey I also noticed that, but how to get publicID of the file we want to delete as we only have the url of the images?
@muhammadammaratique3748
@muhammadammaratique3748 4 ай бұрын
@@sameerraj5800 we need to store publicID of images during registration.
@engineeringlife4567
@engineeringlife4567 3 ай бұрын
How to get public I'd automatically Don't say use : response.public_id
@muhammadahsan6477
@muhammadahsan6477 4 ай бұрын
5:08 arey sir ap itni mehnat se videos banaty hai to hum itny gor se q nahi dekhy gy thank you so much sir love from pak
@forexspectrum4799
@forexspectrum4799 Жыл бұрын
I have to say Hitesh sir is gem our community ❤❤❤❤
@amoghphaterpekar740
@amoghphaterpekar740 Жыл бұрын
Very informative and helpful video. Able to visualise everything properly
@tanishkagupta3479
@tanishkagupta3479 8 ай бұрын
Sir I can't thank you in my words. I feel so confident. There was a time when I was learning Frontend, I was low I was sad i believed that i'm not for programming I can't do programming. But this is me who is enjoying backend more than anything. You made backend this much easy jisse ki i fell in love with backend and with your channel. Bless me Teacher to have a great future ahead. Thanks a lot again!
@the_haryannvi_coder
@the_haryannvi_coder Жыл бұрын
Best lecture from best teacher 🎉🎉
@MuhammadHaris-ti9jq
@MuhammadHaris-ti9jq Жыл бұрын
Sir, please continue this series. No playlist series videos on youtube has the same number of viewers for each video. After a year or so, you will see that this series will have a lot of views. Views for each subsequent video in a playlist tend to go down, even if it is a channel with 5 million subscribers. So please continue, this series is very helpful
@veershah3415
@veershah3415 Жыл бұрын
Please dont leave this series in half way we want it hardly sir 🙏🙏 its like a forever guide for all of us
@aamir067
@aamir067 Жыл бұрын
We are waiting for next js series after completing this one
@phil_dunphy-fz1fw
@phil_dunphy-fz1fw 7 ай бұрын
The best tutorial out there for backend in js. I already have experience in making full stack but this playlist is just clearing all the fog in my mind. THANKS A LOT HITESH SIR. YOU ARE TRULY A “TEACHER”.
@shivanand0297
@shivanand0297 Жыл бұрын
sir in production mysql database is preferred as mongodb in not scalable ? any thoughts when to use mysql data base and when to use mongodb database, because in mongodb we can also make relations my passing ref in the schemas and sql is already relational database. so why sql is preferred over mongodb.
@md.sameershahzada2423
@md.sameershahzada2423 Жыл бұрын
Hello 👋 Hitesh Sir, I saw you broadcast post on whatsapp 'Re-thinking to continue backend'. 😮 This is my humble request please dont stop backend series. Currently I am at the ending of your JavaScript series & mid of react series That's why unable to watch Backend series. Please dont stop this series because here are lots of people who want to do full stack development like me.
@subashranabhat5971
@subashranabhat5971 Жыл бұрын
In mern stack only mangodb is been used or other RDBMS are also been mixed up in production practice? Love from Nepal.
@Abdul_Wajid
@Abdul_Wajid Жыл бұрын
Database choice depends on the company you're working for, in case of relational databases you should use an ODM like sequelize
@sxjeed
@sxjeed Жыл бұрын
Lot of open source code bases use SQL database a lot
@TheSydney1292
@TheSydney1292 Жыл бұрын
Hi Hitesh Sir, Each and every video of this channel is giving me more confidence Thank you for your time making this videos
@chaiaurcode
@chaiaurcode Жыл бұрын
Glad to hear that 😃☕️🙏
@Rohit_Rai901
@Rohit_Rai901 Жыл бұрын
🙋‍♂ Hamesha "7:30 PM" par kyun?🤔 Lagta hai sir bhi "Taarak mehta ka ulta chashma" dekhte hain! 😂🤣🤣
@subhassssadhu
@subhassssadhu Жыл бұрын
This series is great. Such comprehensive and detailed explanation of every concept. It really gives a unique perspective of developing backend for real world applications. Thankful for such great teaching, Hitesh sir.
@codingwave56
@codingwave56 4 ай бұрын
34:09 Future developers sir is giving the best advice to keep this in your mind
@arrow3834
@arrow3834 Жыл бұрын
Thanks sir for providing best backend series 😊
@omprakashbind7237
@omprakashbind7237 6 ай бұрын
Hello Sir, I would like to thanks from the bottom of my heart , for making such a good backend series. I have not seen such type of videos on you-tube even not on paid course as well. thanks a lot once again Sir.
@SumitKumar-nd1nd
@SumitKumar-nd1nd 7 ай бұрын
Sir, you are great, I mean best thing I found on KZbin is your channel
@CodingWithSarvan
@CodingWithSarvan 8 ай бұрын
This Backend series is very Helpful and unique Thank you so much, sir
@AdityaSingh-ex4bn
@AdityaSingh-ex4bn 8 ай бұрын
19:58 one more validation we can put is to check whether the old-password and the new-password is equal or not, if we found same than we need to throw error else we can move ahead.
@Ali-2812
@Ali-2812 4 ай бұрын
What an amazing journey so far. I learned so much in the comfort of my home.
@moidalam
@moidalam Жыл бұрын
"Your backend JavaScript tutorials are an absolute game-changer! 🚀 The way you break down complex concepts into easy-to-understand steps is a lifesaver for someone like me who's diving into backend development. Your clear explanations and hands-on examples make learning a joy, and I appreciate the depth you go into without overwhelming your audience. Keep up the fantastic work! 🙌 Looking forward to more enlightening content that turns backend development into a breeze!"
@rakib_bhai74
@rakib_bhai74 Жыл бұрын
Love you sirr ,❤ Mene kavi paid course nehi liya thaa , Aab pata chala ki Quality content kiya hote he , Aage app khabi vi paid course launce karenge toh me us course ka first 100th student mese ek rahunga , promise ❤, & Thank you again ❤❤🎉
@liberal.baniya
@liberal.baniya 10 ай бұрын
hahahaha , sir ji only commenting here because you caught me red-handed about watching this video while lying on my sofa! ek dum man-mugth kar dete ho aap sir loads of love...aur sir ji python complete aapne sikha hi diya hai , bas django bhi sikha do jaldi...chai ke saath
@kishalaybhattacharya5015
@kishalaybhattacharya5015 9 ай бұрын
Very helpful content sir! Understanding and learning a lot..it is also good that I can watch many videos in one go due to this series being already over...very grateful to you.
@todd7695
@todd7695 Жыл бұрын
Finally caught up with the latest video in the series. Please continue with the series and thanks!
@sarkar4670
@sarkar4670 Жыл бұрын
Sir, Your are teaching style all the best than other KZbinr . That why I m waiting your video . Thanks sir💙💙
@yashpandey350
@yashpandey350 Жыл бұрын
Never binged any series like this, Since I've implemented some of the stuffs in my previous projects so everything is clicking why I did that why that thing worked and all sorts of doubt is getting solved here😅😅🌸🌸
@vaibhavchopra5297
@vaibhavchopra5297 Жыл бұрын
Sir please continue this series. It's amazing and we are learning a lot. 💯🙏🙏❤
@RahulSharma-wz6yv
@RahulSharma-wz6yv 4 ай бұрын
I am wondering, the level of energy and efforts you put in every video, can't stop myself from learning when I start watching your backend series
@suhailchouhan6467
@suhailchouhan6467 Жыл бұрын
Thankyou for the backend series. Learning alot of things.
@107-jerrybritto5
@107-jerrybritto5 Жыл бұрын
Sir uptil now I have referred many yt channels for studying anything related to programming or cs but after visiting your channel through pw I almost stopped watching them. Through your courses I have explored many things which I couldn't do if I done this all by myself. Thank you sir for providing such a valueable content and also giving us a environment where we explore our understanding and learn only those concepts which are actually being used in the industries.
@lifespend3080
@lifespend3080 Жыл бұрын
Sir you are great teacher sir you are really heart touching for developers ❤
@tuhinghosh9737
@tuhinghosh9737 5 ай бұрын
I can write controllers now.. thank you so much to this man❤ Thank you so much sir ❤
@musaibalichandio
@musaibalichandio 4 ай бұрын
Hi hitesh sir, each and every video is giving me more & more confidence before your channel I thinked that coding is not for me but now I'm realizing that i can be aa good developer.
@kanailalmanna5005
@kanailalmanna5005 Жыл бұрын
Before this series I was able to solve complex dsa problem but in backend I was just a cat, but now I just feel like a lion king, we really love ❤‍🔥❤‍🔥❤‍🔥 the way you teach
@thecloudstories
@thecloudstories Жыл бұрын
Amazing, Totally Professional.
@Rishabh__singh7
@Rishabh__singh7 Жыл бұрын
Database is on other continents ...... Sir maja aata hai Study krne me Thank you sir 🥰🥰🥰
@codebyprince4562
@codebyprince4562 11 ай бұрын
Thanks a lot Hitesh sir..... For giving these amazing video clear my all doubts After watched these video....sir ❤
@mohsinzia8566
@mohsinzia8566 4 ай бұрын
Your videos are very easy to understand and are very practical
@09avishkargaikwad71
@09avishkargaikwad71 19 күн бұрын
1. Think use case like single user can have multiple channels. 5:00 2. findByIdAndUpdate will not word for password change and hash the password. Because findByIdAndUpdate calls the middleware findOneAndUpdate which does not execute pre and post save hooks. 13:16 3.
@forexspectrum4799
@forexspectrum4799 Жыл бұрын
Great tutor ever all over the youtube developer community
@techmelon7
@techmelon7 Ай бұрын
this series is absolutely amazing!!! thanks Hitesh sir
@MdShihabUddin-dh5vc
@MdShihabUddin-dh5vc Жыл бұрын
Thanks sir❤️, We need This type of professional projects/learning more.
@manish_6
@manish_6 Жыл бұрын
Thanks for the video. please bring more fire backend videos 🔥
@lalmanthakur7899
@lalmanthakur7899 Жыл бұрын
great teacher comes with great videos 😊
@allyn3015
@allyn3015 11 ай бұрын
Journey of being professional continues and you are the pilot 🚁. Thank you for this amazing content. Hope to meet you soon sir❤
@prashantsaw9952
@prashantsaw9952 Жыл бұрын
took a paid course to learn mern stack that too is a very good course but this is an extraordinary one . Maza hi agya bilkul. Concepts itna achese se clear hua + dimaag mein baith gya hai ki koi neend mein bhi bolega bhai ye kaisa work krta hai toh batadu Literally i can bet paid courses ka koi match hi nhi iss course se
@LogicArena01
@LogicArena01 8 ай бұрын
Love from my Side , awesome going 🔥🔥🔥🔥💖💖
@RoshaniWankhede-rf4rw
@RoshaniWankhede-rf4rw 2 ай бұрын
Superb Video on refresh access token 😍
@Ba-dastooor
@Ba-dastooor Жыл бұрын
Im learning frontend .....but just for you sir.....❤❤
@Ofcl-Javed
@Ofcl-Javed 11 ай бұрын
31:14 To update avatar Step 1: get avatar from user Step 2: find user with the id from req.user Step 3: upload avatar to cloudinary Step 4: Save avatarUrl to database Step 5: Send success response
@rakeshbhetariya
@rakeshbhetariya Жыл бұрын
First I watch this video and then write all of the endpoint feel confident ❤
@muhammadubaid3800
@muhammadubaid3800 Жыл бұрын
Sir, I appreciate your efforts to teach us in that depth and your teaching ability is on the next level. During watching this video, I think in the updateAccountDetails method, we should use && operator between fullName and email when we are checking it to be not null. Thanks🙂
@AavaniVedanshi
@AavaniVedanshi Жыл бұрын
Learning by myself after watching this video is a major benefit I found.
@HARSHKUMAR-g2d6u
@HARSHKUMAR-g2d6u 10 ай бұрын
sir hum toh video dekhane se pehle hi like and also comment bhi kar dete hai because i know the quality of the video which you provide to us
@rakib_bhai74
@rakib_bhai74 Жыл бұрын
Bug: : Line 267 __ missed 'await' keyword ❤❤❤ while finding the user and update user details.... , love you sir ❣️❣️❣️❣️🎉 don't discontinue this series ❣️❣️
@vaibhavchopra5297
@vaibhavchopra5297 Жыл бұрын
Love ❤ great learning 🎉🎉
@zia-kayani
@zia-kayani Жыл бұрын
great instructor with great knowlege ..
@techjagat4714
@techjagat4714 7 ай бұрын
Thank you so much sir , I always wait for your new videos.❤❤
@shivanshuhere
@shivanshuhere Жыл бұрын
Sir don't stop the backend series, we are very impressed with the previous videos and will continue to show love, but to understand the previous concept we are rewatching the previous videos that's why new videos doesn't have that much engagement, 🙏🏻 we are trying our best to complete previous lecture as soon as possible and give love to new lecture, hope you understand ❤, lot's of love
@aayushverma8931
@aayushverma8931 5 ай бұрын
this level of explanation is amazing.
@tarunjhamb5388
@tarunjhamb5388 Жыл бұрын
Sir please continue this full series, we need this awesome content.
@jashabantadas9783
@jashabantadas9783 Жыл бұрын
Hey , i genuinely support you for you content from heart. keep going.
@adityauniyal8632
@adityauniyal8632 Жыл бұрын
Your backend series is the best ❤❤❤❤❤❤❤❤
@obelix_gaul
@obelix_gaul 7 ай бұрын
Great content as always... top notch... shared on twitter like always...
@thevhejalltd8716
@thevhejalltd8716 Жыл бұрын
#ChaiaurCode, one of the best teacher of youtube, thank you so much for your valuable time Sir❣
@Ankit_Das_98
@Ankit_Das_98 10 ай бұрын
Sir Please continue to make this kind of amazing series, these are like text book, in video form
@learner8053
@learner8053 Жыл бұрын
Please continue this backend series 🙏
@sufiyanahmad1603
@sufiyanahmad1603 Жыл бұрын
Sir sabse jaysa reset & forgot password me hoti hai , but ab aapki video aagai to ab sab kr lenge❤❤
@harshgupta2752
@harshgupta2752 Жыл бұрын
love it, sir, please continue this series we are learning a lot from it .
@sugarfreecode
@sugarfreecode Жыл бұрын
Please continue making videos in this series. My personal project depends on you.
Understand the subscription Schema
20:11
Chai aur Code
Рет қаралды 44 М.
HTTP crash course | http Methods | http headers
24:19
Chai aur Code
Рет қаралды 134 М.
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
Learn Mongodb aggregation pipelines
36:45
Chai aur Code
Рет қаралды 79 М.
Tech for 2025 | No nonsense guide
17:38
Chai aur Code
Рет қаралды 113 М.
Why are you not creating anything in c++ ?
14:46
Chai aur Code
Рет қаралды 130 М.
How to write sub pipelines and routes
30:14
Chai aur Code
Рет қаралды 41 М.
MongoDB models for like playlist and tweet
30:12
Chai aur Code
Рет қаралды 43 М.
Pick these tech to make or destroy your tech career
15:52
Chai aur Code
Рет қаралды 104 М.
Access Refresh Token, Middleware and cookies in Backend
1:02:45
Chai aur Code
Рет қаралды 106 М.