User and video model with hooks and JWT

Поделиться
HTML-код
  • Опубликовано: 21 ноя 2024

Комментарии • 1,4 тыс.

  • @uzairahmad7442
    @uzairahmad7442 9 месяцев назад +20

    Sir ! You have taught me and my younger sister a lot. we have a huge respect for you. whenever she calles me to ask something we mostly ended up saying your dialogue "Or to kia hi ha is me" .
    every video you make i really a great effort. This effort can only be seen if someone had worked in industry or really had suffered to solve many problems.
    Respect form Pakistan.

  • @jaffasunny
    @jaffasunny Год назад +83

    Never thought we can write methods directly into our schema,
    So much efforts have gone into this course,
    So many goodies one can take out from this course.
    Mad props to Sire Hitesh Chaudhary

    • @chaiaurcode
      @chaiaurcode  Год назад +51

      This course sets benchmark standards 😁😁

    • @bhaskarmoger1160
      @bhaskarmoger1160 8 месяцев назад +5

      and that too in free of cost ♡

  • @arghya_0802
    @arghya_0802 10 месяцев назад +35

    7:13 - Syntax for exporting: export const User = mongoose.model("User", userSchema) ;
    7:46 - The model will be named as users [Plural and Smallcase] and that's why we always name the Model in UpperCase and Singular
    12:40 - Next Line after type: mongoose.Schema.Types.objectId is -
    ref: "Video"
    15:45: Syntax: export const Video = mongoose.model("Video", videoSchema") ;
    Note - I think sir had missed using await keyword in bcrypt functionality
    The lecture is just awesome!! Never understood JWT & Hooks in such a simplistic manner!!

  • @souravyadav2437
    @souravyadav2437 8 месяцев назад +2

    Best Nodejs Express backend course in RUclips. This is called learning === enjoying

  • @supersection
    @supersection Год назад +22

    7:13 - for exporting the model we use the following line of code
    export const User = model("User", userSchema);
    Here, {model} is coming from "mongoose"
    And, "User" will be saved in database as 'users', because by default mongodb makes the name plural (all in lowercase)
    THANKS A LOT SIR❤❤❤

  • @hamzasajid7973
    @hamzasajid7973 6 месяцев назад +35

    who ever missed this video I am telling you every minute of this video have years of knowledge. Its a must watch guys 🤩

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

      bhai ye authenticatrion ka km he na jo sir jwt se kra rahe isko alag folder bh krtey he?

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

      @@Zaid__1__9 kehne ka matlab

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

      @@hellome3046 means k token jo gneerate hore usse pehle jo pre hook lagaya he passwor wala wo authenticate kab hoga

  • @abubakardev3066
    @abubakardev3066 Год назад +83

    Best JavaScript channel on RUclips. Love from Pakistan ❤

    • @technologymad9253
      @technologymad9253 8 месяцев назад +4

      bhai tumne javascript channel likh kr sir ko naraz krdia hai😂

    • @asmittyagi6250
      @asmittyagi6250 8 месяцев назад +1

      @@technologymad9253 😆😂

    • @LearnerAbhi21
      @LearnerAbhi21 8 месяцев назад +1

      @@technologymad9253why but ?

    • @tanishkagupta3479
      @tanishkagupta3479 7 месяцев назад +1

      Not only javascript sare playlist gem hai

    • @developer_dhanji
      @developer_dhanji 6 месяцев назад +1

      wo to hai 👌👌

  • @Dev-Phantom
    @Dev-Phantom 7 месяцев назад +2

    These videos are Really "Top-notch" and better than any paid course. Fully production Level. Sir you are really putting so much effort. This is great work. Philanthropy for betterment Hindi speaking Software Developers. Thank you so much.✌

  • @shoaibhasan4026
    @shoaibhasan4026 Год назад +7

    I took paid courses but they never discuss a single word on aggregation in MongoDB.
    Thank you sir for being best of the best ❤

  • @mdkadirkhan6388
    @mdkadirkhan6388 10 дней назад

    Usually I don't write comment, But your video force me to put on it.
    Your backend development series really follows professional industry standards which make itself as per industry norms.
    I'm software engineer more than 4y+ still follow you & learning.
    Keep it up 😊 Your video will leave all paid courses behind.

  • @sukamalpandit7009
    @sukamalpandit7009 Год назад +9

    I am a Govt Officer , learning coading past one year. Your teaching is amezing. Learn a lot from your English channel also

  • @Zerofactorial
    @Zerofactorial 9 месяцев назад +2

    3 saal phale apko ek news channel mein dekha tha then pichhle saal pata chala ke mera bada bhai bhe apko follow kerta h kyu ke ushne bhaut recommend kiya ek teacher h yt pr must follow ker and aab 3 months ho chuke h "hn ji swagat h apka chai or code mein " ❤ thankyou so much sir confidence build kerne ke liye hamara 🧿

  • @kushagrakatiha
    @kushagrakatiha Год назад +13

    3 hrs me to nhi kr paya.......but I loved this video the way you explain sir....is just amazing, a big heart from my side sir 💓

  • @Trance-tales
    @Trance-tales 8 месяцев назад +2

    will complete this series for sure. learning alot daily😍

  • @Govindsingh_90
    @Govindsingh_90 Год назад +18

    6:30 User Model
    15:15 Video model
    20:20 Mongoose-aggregate-paginate-V2 package discussion
    23:50 bcrypt and jwt token

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

    Again, watching this playlist to revise the concepts would say, still one of the best backend series. Thanks sir for this series. Would love to get more videos of this series.

  • @SurajGupta-ux2se
    @SurajGupta-ux2se Год назад +6

    Learning from teacher like you such a blessing 😊😊 THANK YOU SIR !!!

  • @dikshatiwari4802
    @dikshatiwari4802 8 месяцев назад +1

    Thank you sir, , You have explained these complex topics in a way, i find it easy as well interesting. Your way of explaining topics is top-notch. I wanted to learn these topics but didn't find any video until i started this series. Thank you Sir for this valuable content.

  • @gobicorner
    @gobicorner Год назад +8

    7:45 it will be saved as "users"(mongoDB saves model names in lowercase and appends character 's' makes it plural).

  • @Neha-qm6co
    @Neha-qm6co 17 дней назад +1

    Sir, aap sari cheeze bta dete h phir khte h Mai nhi btaunga 😂🤗..
    interesting videos!!❤

  • @web_mechanics
    @web_mechanics Год назад +7

    I follow all the FrontEnd and Backend series and got an amazing experience
    Now I am preparing SD3 lavel
    Thanks sir

  • @LetscookYummyrecpies
    @LetscookYummyrecpies 4 месяца назад

    who ever missed this video I am telling you every minute of this video have years of knowledge. Its a must watch guys

  • @prabhatchandela3959
    @prabhatchandela3959 8 месяцев назад +7

    Comment contribution 😁🙏🏼

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

    Hitesh Sir Always Talking in dept of everything, That's why i follow him from last 2 years.🥰

  • @NarenderSingh-qo2dj
    @NarenderSingh-qo2dj 6 месяцев назад +3

    1k comments done

  • @shivkojha
    @shivkojha 8 месяцев назад +1

    I am binge watching also loving this series, retaining via practicing the stuff at same time so that not go in tutorial hell and squeeze as much knowledge as i can take from this series , beautifully explained every topic.
    Completed - 9/Mar/2024 6:15 pm

  • @Kashyap-1503
    @Kashyap-1503 8 месяцев назад +4

    *895 Comments Done

  • @mayukhdevansahu5707
    @mayukhdevansahu5707 Год назад +2

    Damn! It's been years now I've been learning from your channel Hitesh Choudhary. Now this chai and code!!! Since the day one I had the same question in my mind, "Why this channel is so underrated?". But the way this channel is picking up speed, it's not gonna be underrated anymore ❤... Superb content, best teaching style, with real world examples. I've been in this software industry since years now, And I understand whatever you're teaching is actually worth it. Lots if RUclips channel out there who just teach stuffs want people want to learn. But their real world applications are very less.

  • @HassanAhmed-cb3gk
    @HassanAhmed-cb3gk 2 месяца назад

    On 9-1-2024, I watched this video. It's the best and most in-depth course I've ever seen. The way you teach and practice Mongoose is amazing-I love it. I've been a Laravel developer for the last two years, and I want to shift my career to JavaScript. Choosing your channel to learn the MERN stack was the best decision of my life. Love from Pakistan. ❤

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

    Bhai bohot he khobsorathe sa samjatha ha ap na.
    Hud kar de ap na. Ap jasa pharhana Wala teacher aj thak nahi daka.
    Bohot sari Dua ap k liya.
    Love from Peshawar, Pakistan 🇵🇰💚

  • @nitinduke
    @nitinduke 9 месяцев назад

    sir aap sahi me bhot jyada acha educational content provide kr rahe ho mai aapko 2018 se follow kr rha hu

  • @SongsetImage
    @SongsetImage 4 месяца назад +1

    Story Story me Backend learn ho jaata hai Thank you so much Sir

  • @swarajdevardekar8400
    @swarajdevardekar8400 5 месяцев назад

    I hope hitesh sees this comment. thanks hitesh, this knowledge is very hard to get but you are teaching it in free of cost. as fresher we struggle to understant the flow of application but can not able to understant specially when we work in MNCs.

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

    The way you teach with so much love is just awesome sir. Such professional approach to backend is not available in the whole RUclips community. Love you sir and thank you for providing such beautiful content absolutely for free. ❤❤

  • @dheerajpali9746
    @dheerajpali9746 5 месяцев назад

    Thaks a lot Hitesh sir , the price of this course can be in lakhs , the quality of content is literally superb. Once again thank you so much.

  • @thegamesopener8114
    @thegamesopener8114 9 месяцев назад

    We are very lucky to have this quality content for absolutely free ! Thanks Guruji .. 😊

  • @azeemdeveloper4815
    @azeemdeveloper4815 9 месяцев назад

    sir, you are great, literally very nice series , nobody will overtake this series in youtube. I am giving 10/10 of this series.

  • @RajCreationAA
    @RajCreationAA 9 месяцев назад

    Sir i've seen some backend series but they only cover superficial topics, while you provide industry-level teaching an d also share best experiences, thank you so much sir for your this effort, currently i'm not earning but when ill crack the job i'll pay your fee sir 😊😊🙏🙏

  • @lonewolf-_-8634
    @lonewolf-_-8634 6 месяцев назад

    SIr you're literally a one-stop solution for any concept ...

  • @Ghatkars
    @Ghatkars 10 месяцев назад

    best video ever. mere company ne muze java basis pe hire kiya and node pe assign kiya and muze node and js ka 0 knowledge hai but apke videos dekh ke muze ab bohot topics ate hai sir wo bhi confidence ke sath because mere concepts clear ho rahe hai.
    thank you sir

  • @mohammadhanif3016
    @mohammadhanif3016 10 месяцев назад +1

    Your eloquence is truly remarkable, sir. You have delivered precisely as promised. The caliber of this series is undeniably exceptional, and attempting to articulate its essence feels insufficient-experiencing it is imperative. I consider myself fortunate to have a mentor of your caliber and eagerly anticipate further opportunities to learn from your expertise.

  • @Jack-of_All-Trades
    @Jack-of_All-Trades 10 месяцев назад

    Hat's off sir. Jo kuch vi backend seekh rahe hai aap hi se

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

    your videos are much needed even for experienced developers
    thanks for your contribution

  • @ItsHarsh18
    @ItsHarsh18 7 месяцев назад

    sir i had a dilemma that ik the MERN stack since last 6 months but today got to know many things new ...didnt know v can write custom fn as well in MONGODB .. thank u sir ..for the first time m ever m commenting on someone's channel but honestly u made me do it .. hats off to u sir .will always be gr8ful for u

  • @arijeetkonar4386
    @arijeetkonar4386 6 месяцев назад

    You can bank on this person for building a successful tech career, that's for sure. GOD level content.

  • @mudrad1930
    @mudrad1930 10 месяцев назад

    Iam using these videos with chatgpt and documentation and chai and javascript series .. deadly combination for learning
    Thanks sir and his team

  • @huraiah821
    @huraiah821 10 месяцев назад +1

    Best backend playlist 🥰 Love from Bangladesh

  • @ritikparihar9717
    @ritikparihar9717 9 месяцев назад

    I watch so many english channel on web development because they are better then most of hindi channels but you are even better then those english channel and so down to earth

  • @romanthapa3673
    @romanthapa3673 4 месяца назад +1

    i am sure this is the best course i have seen in youtube

  • @saurabhjaykar1603
    @saurabhjaykar1603 11 месяцев назад

    Recognizing Hitesh Sir's role in #chaiaurcode #backenddevelopment is commendable. Being grateful to teachers like him who shape our learning journeys is valuable.

  • @afzalhamdulay
    @afzalhamdulay 6 месяцев назад

    the code that you taught were never known to me. never saw this code. thats really amazing knowledge. although it was a bit difficult. especially the jwt part. have to give some time to it and watch the next lecture to see how jwt actually works. thanks a lot

  • @GAURAVSHARMA-ty8nm
    @GAURAVSHARMA-ty8nm 7 месяцев назад

    thanks sir, superb explanation+cleared jwt implemetation+model mongoose logic 🙏 💐

  • @SourabhGoswami-po4tp
    @SourabhGoswami-po4tp 14 дней назад

    i like that i contains no advertisement
    love the series

  • @kazitanim007
    @kazitanim007 8 месяцев назад

    The best back end course ever, thanks for ur hard work.

  • @WatchNotchK2S
    @WatchNotchK2S 4 месяца назад

    Nice in-depth video sir. till now kuch samaj nhi aa raha hai as i m starting as a new bie but i hope aapki krupa se jaldi hi samaj jaunga.

  • @roshanlalsahu7846
    @roshanlalsahu7846 11 месяцев назад

    great video Hitesh, really loving the course. I am frontend dev, i was planning to learn BE from long time, but never found something which was this detailed and very well explained.
    Thanks for making the video. i have something to learn daily now, after a long time 🙏🙌

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

    Best teacher and mentor ever😊

  • @developer_dhanji
    @developer_dhanji 6 месяцев назад

    thanks dear hitesh sir for valueable content , comment target pura na ho aise ho hee nahi sakta ,

  • @tatariyaakhtar504
    @tatariyaakhtar504 8 месяцев назад +1

    Your hard work will pay off sir.

  • @DevaMhatreAtBB
    @DevaMhatreAtBB 11 месяцев назад +2

    I wasn't aware that, we can write this much of code in our *model.js* file!
    This will definitely help me in my next job project on the backend & I think after completing this course I can also go for Backend development,
    as currently I am working on React/NextJs ...
    #ThanksALotHitesh for making us a full-proof Full-Stack Developer!

  • @aamirpare
    @aamirpare 8 месяцев назад +1

    Hitesh you do a nice job, keep it up. Good wishes for you

  • @supremeleader5516
    @supremeleader5516 4 месяца назад

    So much info in just one video. Its a GoldMine

  • @K_EE_Koshal
    @K_EE_Koshal 11 месяцев назад

    It's wonderful that you recognize and appreciate Hitesh Sir's contributions to #chaiaurcode #backenddevelopment. Expressing gratitude to those who have positively impacted our lives is always a meaningful gesture.

  • @Omarfaruk-wq5hl
    @Omarfaruk-wq5hl 7 месяцев назад

    Best JavaScript channel on RUclips.

  • @walidbaharwal
    @walidbaharwal 7 месяцев назад

    Your production-level teaching is Great ❤

  • @sangamgaikwad5021
    @sangamgaikwad5021 9 месяцев назад

    sir u are making the awesome content for backend now i am very clear about how the JWT Token generating
    and also refresh Token thank u so much making this amazing content......

  • @harshalashi
    @harshalashi 9 месяцев назад

    Thank you sir, the previous two videos data modelling were proven quite beneficial while building the models in this video

  • @vivekkrishan2198
    @vivekkrishan2198 10 месяцев назад

    Sir, we are with you. I have never read Backend with this level of depth.

  • @WellnessSimplified-e7b
    @WellnessSimplified-e7b 3 месяца назад

    Sir great content lifesaver for my current job

  • @karma97652
    @karma97652 19 дней назад

    fire hai sir g love this series breaking bad ki level ki series hai🔥

  • @DeepakNamdev-i6m
    @DeepakNamdev-i6m 3 месяца назад

    This series will change the way a beginner code 😎

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

    (06:32) User Model
    (09:30) Whenever you want to enable search field for any field just mark the index property as true for that field
    (15:10) Video Model
    (23:52) bcrypt and jsonwebtoken
    (27:45) pre hook to encrypt data/payload
    (37:30) jsonwebtoken(JWT)

  • @NeerajShukla-t8n
    @NeerajShukla-t8n 5 месяцев назад +1

    Great series on backend development

  • @kapil7008
    @kapil7008 6 месяцев назад

    bhot achha course hai sir dhanyawaad...

  • @ashunegi358
    @ashunegi358 7 месяцев назад

    Best course of backend in the whole world

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

    Thanks a lot Sir. Each and every minute of this video is so precious. Thank you for making our life easier and better. Hats Off

  • @codebyprince4562
    @codebyprince4562 9 месяцев назад

    Right Sir 😊 This Video is really set a Standard benchmark I appreciate..!!

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

    sit your content is really very good beside your backend playlist i can find any good backend series

  • @the_haryannvi_coder
    @the_haryannvi_coder 11 месяцев назад

    sir aapke padhane k style ka main fan hu ❤❤

  • @codetv772
    @codetv772 10 месяцев назад +1

    20:17 "dusre model se kuch liya"
    iske baad jo aggregate wala part hai wo importamt hai -> isse aggregation query likh skte hai
    37:43 jwt is bearer token -> jiske pass lathi uske pass bhais

  • @sauravjha552
    @sauravjha552 9 месяцев назад

    i never understand so easily and got so curious ever best teacher on the planet

  • @RamSinghPatel-vs6ln
    @RamSinghPatel-vs6ln 2 месяца назад

    Thanks Sir for giving best course on youtube 🤔

  • @ramannagwan8812
    @ramannagwan8812 9 месяцев назад

    7:13 - for exporting the model we use the following line of code
    export const User = model("User", userSchema);
    Here, {model} is coming from "mongoose"
    And, "User" will be saved in database as 'users', because by default mongodb makes the name plural (all in lowercase)

  • @sandeeppal2045
    @sandeeppal2045 Год назад

    Best backend series thank you sir for providing this kind of content

  • @Raw_Matter
    @Raw_Matter 4 месяца назад

    Best teacher award goes to hitesh sir.

  • @arkadas2634
    @arkadas2634 7 месяцев назад

    Thank You Sir for giving so in much depth, joined the course late but enjoying a lot💖❤

  • @rohandavid305
    @rohandavid305 10 месяцев назад

    Thank you for this course, hope this reaches new heights ❤❤

  • @funWithCode11
    @funWithCode11 8 месяцев назад

    Pahle humlog ek constructor banate the "const userSchema = new mongoose.Schema({ all mode code write here.}, {timestamps: true}) "and export karte the "export const User = mongoose.modal("User") abhi apne import mongoose {Schema} from mongoose se spread kar diya schema ko. Aur haa hamare database me ye save hoga "users" with pulural name ke sath.

  • @vaibhavverma6813
    @vaibhavverma6813 9 месяцев назад

    Js se shuru kara tha
    Ab kafi aage tk agaye hai aapke saath is web dev ke safar mai❤

  • @MaHesH-bc1gn
    @MaHesH-bc1gn 8 месяцев назад

    sir this course is one of best backend course

  • @rahulparajuli6556
    @rahulparajuli6556 Год назад

    thanks for your series..
    🥰
    No matter how many times I see it, It inspires me more and more.
    love from nepal

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

    Sir, jab chai ke alava kuchh aur beverage pi rahe ho toh wo bhi mention kar dena please. In one of the prev videoes I've seen a different purple colored mug. just curious. anways, padhne me to maza aa hi rha hai, thanks for the course ❤

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

      Humesha hi kuch alag alag hota hai 😂

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

    Thank you Sir aapki awaz bahut hi acchi hai

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

    love the way you teach " mongoose please ek model bana k dena" ♥🔥

  • @rakeshbhetariya
    @rakeshbhetariya 10 месяцев назад +1

    whatever time i watch you vide that time i commented but like once 😀

  • @raviegupta2849
    @raviegupta2849 6 месяцев назад

    7:10 - export syntax: export const User = mongoose.model("User", userSchema)
    7:40 - In mongoDB "User" will save like :- users (all lowercase with plural, automatically done by mongoDB)

  • @poojalahane2584
    @poojalahane2584 6 месяцев назад +1

    THANK YOU SO MUCH BEFORE STARTING VIDEO 2-5-24

  • @gyanaranjansahoo6258
    @gyanaranjansahoo6258 Год назад

    One of the Best Explanation even I have seen. Thank u so much.

  • @Sameer-eu7kp
    @Sameer-eu7kp 7 месяцев назад

    this course is the best in youtube

  • @shikari_shambu
    @shikari_shambu 5 месяцев назад

    Excellent teaching...... Looking forward to more...👍👍👍