MERN Crash Course | JWT Authentication, Redux Toolkit, Deployment & More

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

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

  • @TraversyMedia
    @TraversyMedia  Год назад +290

    I mention it in the video, but I know people are going to ask "why not use Next.js"? Imo I think people should first learn how to build SPAs before moving to SSR-based frameworks. I think it gives them a lot of good foundational knowledge in React. Once they gain that, then move on to SSR (Next.js, Remix, etc).

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

      This tutorial is nice but the way you did authentication in your project of Support ticket System in React front to back course on udemy is more easy then this .

    • @alwaysgrowww
      @alwaysgrowww Год назад +3

      Yeah I thought the same "why not nextjs" but without react there is no next

    • @mohamedjaffir2776
      @mohamedjaffir2776 Год назад +1

      @@zunnoorainrafi5985 I’m also feel the same, support ticket method is much easier than above method

    • @vuelancer
      @vuelancer Год назад +1

      ​@@mohamedjaffir2776 what's that? Can u explain little bit?

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

      Are you gonna create a nextjs tutorial in near future?

  • @christostsm5795
    @christostsm5795 Год назад +214

    Brad, 4 years after i got my first dev job because of you, i am still here and i will forever be, wishing you and your family all the best

    • @blackboxbs8642
      @blackboxbs8642 Год назад +5

      why dont you donate him some money?

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

      ​@@blackboxbs8642 by buying jis courses you can support

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

      thanks for the appreciations

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

      thanks for the appreciations

    • @akanjiruqayah2584
      @akanjiruqayah2584 18 дней назад

      Hi bro, I'll need you to mentor and guide me on how to get my first dev job. I'd really appreciate if you'd help me. Thanks a lot.

  • @TannerBarcelos
    @TannerBarcelos Год назад +16

    Almost 3 years into my career and still love coming back to videos / tutorials like there. You are very senior and have lots of knowledge, and I always learn something new / remember things I forgot / don't use much these days (due to different work projects). Another solid, well structured video! Thanks Brad, hope you are doing good with your mental and physical health - that burnout was very real.

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

    Thankyou brad i got a job in Canada, i am from India. Only because of your this amazing RUclips channels, really a big thanks 👍. Keep doing you have lots of developer best wishes.

  • @Answerx32
    @Answerx32 Год назад +17

    Brad, you are such a legend. Thanks for uploading this.

  • @rabahalishah5124
    @rabahalishah5124 Год назад +3

    One of the most soothing tutorial I have ever seen. No confusion just straightforward. The guide on web is amazing

  • @EarlLewis
    @EarlLewis 10 месяцев назад +3

    Love the way you approach things and build things up piece by piece, so it's easy to follow how an app develops over time. Thank you!

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

    Love from Philippines brad . I'm now working as a front end developer because of you and your videos .

  • @wingmanup7368
    @wingmanup7368 Год назад +5

    Thanks Brad, because of your helpful tutorials Ive been able to learn full stack web development and I am currently in the process of starting a business!

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

    Most Awaited crash course

  • @gibber1sh-c6w
    @gibber1sh-c6w Год назад +7

    Two things MERN Authentication/Authorization tutorials should have:
    1. Http-only cookies; no data saved on frontend
    2. TypeScript

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

    Brad Traversy, you giving me great updates regularly

  • @MuhammadUsman-gk7yx
    @MuhammadUsman-gk7yx Год назад +2

    He is a master. I love the tutorials very up to date and easy wasy of teaching hard topics. Love from Pakistan

  • @LoveEachDay94
    @LoveEachDay94 Год назад +1

    I’ve been working through your JavaScript course side by side with my college work and it’s so frighten useful. Such a huge bang for your buck.

  • @JohnDoe-to8vr
    @JohnDoe-to8vr 6 месяцев назад

    Hey Brad, your tutorials are seriously amazing! Thanks to your guidance, I've learned coding with so much confidence. Your dedication to excellence is truly inspiring. Keep up the fantastic work, lighting the way for us aspiring developers! 🌟

  • @JahidHasan-zl7om
    @JahidHasan-zl7om Год назад +2

    Thats awesome, You have summarized my 2 years lesson in 3 hours 🤩

  • @Amar11115
    @Amar11115 Год назад +3

    Grateful for this Project.
    I am learning a lot from you.
    Thanks!

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

    finally the king is back please keep us updated with new mern stack videos

  • @devdogueto
    @devdogueto Год назад +1

    I was searching for this. Thank you once again!

  • @blue_berry_pie64
    @blue_berry_pie64 Год назад +3

    Thank Brad so much for this mearn auth video, I am learning backend nodejs and express and still need to solidify the knowledge in backend mern.

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

    Out of all the others on RUclips this was Amazingly Great. You and Dave Gray present difficult things look so easy. You should do this with TypeScript as soon as possible. My backend is in TypeScript and now converting it to JavaScript to implement the authentication you taught us here because there are some type issues like for req.user and few others.
    Please do this in TS. Thanks!

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

    This is best Explanation ever. specially how you have handles error by express-handler stuff at starting. 🙂

  • @khalidelgazzar
    @khalidelgazzar Год назад +1

    This is a production level tutorial. Thank you

  • @davidmachek6801
    @davidmachek6801 Год назад +56

    After completing this course 7 times I confirm this is a certified Brad classic
    Edit: On a serious note, great course, Brad, keep it up.

    • @surajjha5623
      @surajjha5623 Год назад +15

      3hr course 7 time within 1hr 🤣🤣 you are classic bro

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

      @@surajjha5623 🤣🤣🤣😂😂😂💀

    • @cryptoboy1461
      @cryptoboy1461 Год назад +4

      Only 7 times? I completed this course 20 times.

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

      @@cryptoboy1461 by building it 20 times or just watching?

  • @BilalAmin-v5z
    @BilalAmin-v5z 6 месяцев назад

    Thank you Brad, you're a wonderful teacher!

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

    you and jonas are really really great teachers, you put professors in to shame mode...

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

    Traversy Media changed my life

  • @dbslqor
    @dbslqor Год назад +1

    This was such a good in depth tutorial of full stack software development covering a lot of necessary fundamentals. Thank you

  • @acs2777
    @acs2777 Год назад +1

    Wow my thought today was how can i work in mern and now you saved me 🎉❤

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

    I just want to thank you even before watching the tutorial.

  • @SaptarshiMajumdar
    @SaptarshiMajumdar Год назад +1

    Great video Brad. Thanks

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

    A video on the chrome extension u use would be great 😃

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

    Thank you Mr. Brad, i learn from you a lot keep going bro.

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

    wel come mr am happy to get your latest videos.

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

    Thank you Brad, I 've learned a lot from your video. you are a great man.

  • @saman6199
    @saman6199 Год назад +1

    Thanks for amazing work Brad

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

    even I'm interested Artificial Intelligence but I always follow along Traversy Media's channel and contents )))

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

    Thank you Brad. I owe you a lot !

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

    Really amazing, thorough and helpful work. Thank you so much.

  • @oriano-dev
    @oriano-dev Год назад

    It was really great, although I didn't understand the redux part. I was mainly here for JWT so I still thank you !

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

    This is really awesome, Brad.

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

    yeaaaa, exactly, that one course every one wants.

  • @Salah-YT
    @Salah-YT Год назад +1

    thank u so much

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

    Amazing video, I don't really like or comment on any videos but it 100% deserved it. I got to learn a lot. I would like if you create part 2 where you, use this code to create another project :)

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

    This video is extraordinary, thank you I was able to recall all methods..

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

    Do you have any videos on role base authentication and routing ?

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

    The King is back!

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

    Can you make a tutorial for GSAP?
    PLEASE it would be very useful.
    Love your work, keep it up!

    • @blutube9916
      @blutube9916 Год назад +1

      greensock is easy compared to this tutorial. If you can follow this, then you can easily learn it yourself.

  • @ScriptRaccoon
    @ScriptRaccoon Год назад +1

    46:36 Notice that setting unique:true does not validate the emails to be unique. MongoDB has a doc page on this misconception.

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

    Thank you so much for the project Brad, Love from pakistan

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

    Thank you so much for the project!

  • @quamzgraphix9826
    @quamzgraphix9826 Год назад +1

    We miss you Brad 😊hope you’re doing well?🎉

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

    Favourite instructor❤

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

    Questions (updateUserProfile API):
    1) Why check if user exists (findById) if its a protected API anyway? (auth Middleware does check if user exists by Id and returns a user if authenticated).
    2) When changing the password, it doesn't seem like you hash the password with bcrypt, you save is directly from the body input, am I missing something?

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

    Hi Brad, a video on the MEVN stack would be nice too

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

    This will be good, gotta watch asap

  • @miguelemmara5046
    @miguelemmara5046 Год назад +1

    Just finished this, coming from Laravel background where everything is out of the box, this journey was overwhelming! Nevertheless the tutorial was bomb!

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

    we can also add a check , if enter the same email by other users. e.g "Email already in use."

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

    Thank you so much for the project video

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

    Here to juice the algo. Love the content brother.

  • @belafekete3125
    @belafekete3125 Год назад +3

    Hi Brad,
    this is a great tutorial! Thx
    I have a little problem.
    The cookie is not created in the browser, but is created in the Postman.

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

      did you figure this out?

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

      Same issue here

    • @ProwlerDigital
      @ProwlerDigital Год назад +1

      @@korngsamnang I figured it out with chat gpt; I think you gotta add include credentials or something

    • @qari.abdullahi
      @qari.abdullahi Год назад +1

      add this line in apiSlice file --- credentials: "include",

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

      adding a proxy will solve it

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

    Great video Brad

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

    Excellent work... Bro thanks

  • @salinashes
    @salinashes Год назад +3

    Can you make a MERN project with OAuth providers as well?

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

    I was looking for few days for a project that will implement the httponly cookie. You are certainly the best instructor for JS on the web.

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

    can't praise you enough

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

    Thank You so much brad ❤

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

    Thanks again brad :)

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

    I am looking forward to your tutorial written in Typescript

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

    Waiting for the eCommerce course to be updated on Udemy

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

    Thank you, Brad.

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

    W MERN STACK. SHOUTOUT TO YOU TRAVERSY!!!

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

    after the 2, hour everything began more complex

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

    @1:35:32 I went looking and found you can name the outputs from concurrently (the [0] [1]'s you see at the start of each line. add this before the commads: (hyphen)n \"C..,..S\" (I had to use (hyphen) instead of the character, else the comment inteprets it as a strikethrough markup here, and those are 2 periods, a comma and 2 more periods between the C & S) I do C.. and ..S, so when they scroll not only are they showing C(lient) and (S)erver, the letters are in different colums for easier distinction.

  • @elhadiziat764
    @elhadiziat764 Год назад +1

    Have a question that concerned me for a long time; If someone choose to become a full stack developer; and decide to work for himself, online, maybe we call it freelancing or a contract job, my question is; can he do it alone? can you do the entire web development process alone? if yes, how? if not, how he can manage a small team? thank you for your videos.

  • @Racine14
    @Racine14 Год назад +1

    Thank you for this awesome video but I would like to know about the validation in backend side.

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

    Great content. Thank you 😊

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

    I think I made a comment a few days ago about Network Errors using either axios or node fetch to express apis. I used ngrok on the react app client side and not express, and I got network errors. However, if you fire up ngrok on the express port, the network error goes away (at least on android).
    I watched another coding instructor do this, and it did work.

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

      The network error only happened when i scanned that qr code on expo go while trying to access the express routes on android/ios (even though no network errors were present in android studio or xcode many times). Axios would call external apis good on the react client side though. ngrok was not needed for that for me.
      this may help someone. I fought with this for a while.

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

    how to setup this monorepo with typescript

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

    Recently I have seen Nestjs become a thing, I'd wish to see a Nestjs crashcourse

  • @sujoykrhaldar
    @sujoykrhaldar Год назад +1

    Hello brad, after this, can you make tutorial of same topic but this time use next 13 + prisma or mongoose . So it will give better understanding for diff tech stack ( without or with next-auth)

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

    @TraversyMedia you are just so good. You have really helped me in my career. Please Can I get the ecommers project link?

  • @demicoderr
    @demicoderr Год назад +1

    Damn! Thank you @traversy🎉

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

    Great tutorial as always Brad!
    I can't quite follow why the userID is stored in the jwt cookie with httpOnly AND in local storage. What is the reason it's also in local storage? I would think having the userID in the secure cookie would suffice, but maybe I'm not quite following why it's also in local storage.
    And depending on the answer to that, would Redux Persist be a more suitable option for storing that information instead? Additionally, is userID considered "sensitive" information in this case?

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

    So helpful tips in making methods and using pre (save) or (validate) in mongodb schema. Do you have a crash course on making oracle database? 😊

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

    16:57
    Thank you for your effort making these great tutorial videos - can please make a video about how to upload Images to Cloudinary (using REACT JS & Node JS ) .

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

    Outstanding

  • @merakli2022
    @merakli2022 Год назад +1

    Hi Brad, thank you for your time and effort making these great videos. I wonder why all tutorials use mongoose rather than native mongo db driver. Is mongoose really better? Thanks again.

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

    Great video as always. Thanks. What happened to having guest content on your channel? Not continuing that anymore?

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

    I would love to see react-query in one of your projects.

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

    thanks

  • @sameerkumarkalyanshetti3335
    @sameerkumarkalyanshetti3335 Год назад +1

    I have one doubt...you stored userInfo in localstorage and used Http only cookies for authentication.. after sometime cookie will expire but localstorage would be filled with userinfo and I can still navigate to protected routes...and if I make any api calls then it would show that token has expired and bythat time localstorage should be cleared.....How to handle this..or am I wrong somewhere??
    Someone help me out ..

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

    many thanks

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

    Someone tell me which one is better among these
    1. Mobile computing
    2. Web technology
    3. Information management
    4. ERP systems
    5. Graph theory

  • @webber5629
    @webber5629 Год назад +1

    It would be great if you will transform this React into NextJS 13 btw thanks for the video.

  • @gyanganga8441
    @gyanganga8441 Год назад +1

    On logout cookies is not clearing.
    Please help me someone.

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

      Hey Gyan, am not sure if you are still looking for an answer, but still I will post it
      In Server.js add cors package and add this code
      app.use(
      cors({
      origin: "localhost:3000", // Replace with your frontend's origin
      credentials: true, // Enable credentials (cookies, authorization headers)
      })
      );
      In usersApiSlice.jsadd this
      just add property credentials : "include" will do the trick
      logout: builder.mutation({
      query: () => ({
      url: `${USERS_URL}/logout`,
      method: "POST",
      credentials: "include",
      }),
      }),

  • @techaddictdude
    @techaddictdude Год назад +1

    29:30 Hey Brad, I didn't understand the custom error middleware part. How is express handling and catching the error when you have not even defined the error types? For example why error goes directly into the errorHandler function when the notFound was defined first?

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

      yes bro, even I am having the same confusion

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

    This is f*cking amazing

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

    Thank you bro.

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

    Thank you so much