React Movie Rating App - Code and Deploy React Intermediate Project

Поділитися
Вставка
  • Опубліковано 30 вер 2024
  • 🌟 Hostinger - hostinger.com/...
    Use the code PEDROTECH to save 10% on premium shared hosting and get up to 91% off on all yearly hosting plans.
    Join our Discord: / discord
    🚀 Learn ReactJS By Building 6 Projects: codedamn.com/l...
    🐙 GraphQL Course: codedamn.com/l...
    Social
    ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    Website: machadopedro.com
    Linkedin: / machadop1407
    Instagram: / pedro.fmachado_
    Github: github.com/mac...
    Business Email: pedro@pedrotech.co
    🌟 Gear / Hardware I Use and Recommend 🌟
    ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    💻 amzn.to/42kqFuM 💻 Monitor
    🖱️amzn.to/3C0ZhHb 🖱️ Mouse
    📷 amzn.to/3OHJvbM 📷 My Camera
    🎤 amzn.to/3oxSthj 🎤 My Microphone
    ⌨️ amzn.to/3oFPpj1 ⌨️ My Microphone
    ⚡ amzn.to/3MYMnzM ⚡ LED Lights In the Background
    Tags:
    - ReactJS Tutorial
    - ReactJS
    - NodeJS Tutorial
    - API Tutorial
    #reactjs #coding

КОМЕНТАРІ • 61

  • @adhirajkar7396
    @adhirajkar7396 8 місяців тому +22

    Thanx Pedro, I am a final year engineering student from India, because of your React and Project playlists I got a Full-stack internship today. Keep up the good work, cheers!!

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

      Hey Bro, Where you able to get the list of rated movies? I am able to rate a movie usign guest session, but the list of rated movies is empty.

    • @UdgeetBhatt-w4g
      @UdgeetBhatt-w4g 7 місяців тому

      Brdr can I get your LinkedIn aur Twitter I'd so that I can contact you talk you there, I am also from india

  • @shaharle88
    @shaharle88 9 місяців тому +6

    I got to the stage where you add the guest_session_id to localStorage I followed the instructions and also the comments here I get the guest_session_id properly from the api but in localStorage it is defined as undifned, can you help?

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

      please use this
      if (isSuccess) {
      localStorage.setItem('access_token', data.guest_session_id)
      }

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

      same, u fix it?

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

      @@ValeriiLutiy Same too

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

      @@quadriadisa8288 it's a timing issue setItem is being called before the data returns from the API you can fix it by using the asynchronous version of the mutate function mutateAsync() in your useMutation, then in handleLogin declare a variable and await mutateAsync for example:
      const handleLogin = async () => {
      const data = await mutateAsync();
      localStorage.setItem("guest_session_id", data.guest_session_id);
      };

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

      @@quadriadisa8288 did you ever solve the problem for the guest_session_id with the rated page?

  • @allsparky
    @allsparky 10 місяців тому +5

    An amazing video! I followed along over the course of a few days and I just finished it! My portfolio website will definitely be featuring my version! Thanks a bunch Pedro

  • @Ridder-In-Harnas
    @Ridder-In-Harnas 4 місяці тому +2

    46:00, guest_session_id = undefined in local storage. someone explain please!

  • @legend514
    @legend514 2 місяці тому +1

    the issue with undefined being set in local storage on log in is due to setItem being called before the response arrives from the API, it can be fixed by using mutateAsync instead of mutate in your useMutation, the in the handleLogin async function you can await mutateAsync()
    const { mutateAsync } = useMutation({
    mutationKey: ["login"],
    mutationFn: mutationLogin,
    });
    const navigate = useNavigate();
    const handleLogin = async () => {
    const data = await mutateAsync();
    localStorage.setItem("guest_session_id", data.guest_session_id);
    navigate("/");
    };

  • @kelvinnwachukwu8141
    @kelvinnwachukwu8141 5 місяців тому +2

    Hello Pedro you can actually do better with your explanation you do not show how the necessarily query URL are gotten from and this does not help your views, also i noticed that trying to guest_session_id in the local storage continues to show undefined, lastly it would be better to leave github link as to where you have finished code and stop giving half baked code that could lead fresher into mess

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

      Why don't you make your own video since you're an expert.

  • @devasarathy
    @devasarathy 10 місяців тому +3

    did anyone got error while fetching res.json file from mutation file to auth file

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

      Yes😭😭..have been stuck for days now trying to fix it

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

      ​@@MichaelOmotayo pls explain us as well

    • @abhxyyy
      @abhxyyy 9 місяців тому +5

      Instead of
      res.json()
      Use
      Const data = await res.json();
      log(data);

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

      @@abhxyyy yeah that was what i did also after hours of finding!💔

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

      Pedro, putting the guest_session_ID into the local storage didn't work. It's broken

  • @roy-qn5eg
    @roy-qn5eg 10 місяців тому +1

    bro plese make a video on adding private chat feature in ur socket chat app please i kindly request you

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

    I am having issue whenevaer I tried to login, the error I get is data undefined. can someone help me please! why is that happening?

  • @Doggy_Styles_Coding
    @Doggy_Styles_Coding 10 місяців тому +3

    Got something wrong, the Movie rated me

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

      hey dont you get any errors while fetching the data from mutation file to auth file

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

      Yes

  • @Kang_3
    @Kang_3 10 місяців тому +3

    Your videos are gold Pedro!

  • @Roger-qj4wu
    @Roger-qj4wu 10 місяців тому +3

    yeah, lets pretend like we dont get undefined on first login attempt and just go on like nothing happened... That's how all this shitty Junior frontenders get born and start spamming their junk resumes - here on channels like this

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

    You're using typescript BUT you're not really USING IT.
    Great idea on tutorial, but very bad realisation.
    Waste of time...

  • @daniel-fi7be
    @daniel-fi7be 10 місяців тому +2

    Can vercel be used to deploy

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

      Use netlify
      Vercel can't

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

    Tried to fetch the rated movies api and it showed "the resource you requested could not be found"
    Was anyone able to fix this?

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

    while making the popular section cards, the image is not loading, when checking the network console iam getting a forbidden 403 reponse, how do i fix this?

  • @Horlar-t2t
    @Horlar-t2t 10 місяців тому +1

    Bro I have missed your videos😊

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

    After a long time one more epic shit keep growing: my language is urdu but basic understanding of English but i watch you tutorial i understand much stuff Like React tutorial

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

    thank you so much pedro , can you please share the code link as well

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

    pTech please how can i get the code tothis tutorial

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

    how can i access the code ? im following the video

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

    hey pedro, can you explain single signin for multiple applications with react like sgare the authentication if i try to redirect thr link to second applicatiom from 1st application how?😊

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

    What theme,are you using?

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

    I really Enjoyed while watching :)

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

    Tem algum vídeo de autenticação com api? Eu não estou achando nos seus vídeos.

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

    should we learn RTK Query? Is React Query enough?

    • @DuK-2102
      @DuK-2102 7 місяців тому

      react query can do mostly anything with api already, you don't need rtk query, it's pretty complex meanwhile react query is really easy to understand

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

    Bro, Ya Boss, greetings from Serbia

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

    I just finished your react course with this firebase product, and now this video? Oh man, I'm lucky today

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

      hey dont you get any errors while fetching the data from mutation file to auth file

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

    hola. gracias por compartir este video. esta genial

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

    Eu sei que vc é br sacana

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

    more videos like this

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

    Please give time lines

  • @mma-dost
    @mma-dost 10 місяців тому +3

    Why not Next.js ?

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

    nice bruh

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

    Thanks a lot!

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

    ❤❤👌

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

    Checkpoints:
    1:14:30

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

      Did he fix the guest_session_id part?

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

      @@abimbolapatrick2707 Yeah he does but very later on I think. I myself kinda figured it out using the comments. Good luck

  • @MohammedDanishKhan-g4d
    @MohammedDanishKhan-g4d 10 місяців тому

    Worth waiting for the conent