Full Stack React Chat App Tutorial (Firebase v9 + ChakraUI + NextJS)

Sdílet
Vložit
  • čas přidán 27. 07. 2024
  • Build a chat app from scratch with ReactJS.
    Live Demo:
    chat.yapsh.com
    The code used in this video:
    github.com/LogicismX/fullstac...
    Firebase Auth Playlist:
    • React Authentication C...
    Cloud Firestore Playlist:
    • How to set up React wi...
    Flexbox CSS Guide:
    css-tricks.com/snippets/css/a...
    Timestamps:
    0:00 Introduction
    2:10 Environment Setup
    4:04 Login Component (UI)
    13:24 Sidebar Component (UI)
    25:16 Chat Area (UI)
    38:17 Authentication
    49:20 Sidebar (DB)
    1:08:55 Chats (DB)
    1:18:19 Sending Chats (DB)
  • Věda a technologie

Komentáře • 67

  • @dahamkalyana558
    @dahamkalyana558 Před 2 lety +1

    This is the best video so far related to a chat system using next js and firebase v9. This video simply excesses any WhatsApp Clone videos out in CZcams. Thank You. Keep it up the good work..!

  • @evantanjoonjuan3973
    @evantanjoonjuan3973 Před 2 lety +3

    Very Informative, THANK YOU VERY MUCH

  • @Tommy-and-Ray
    @Tommy-and-Ray Před 2 lety +4

    what a gem! keep it up

  • @babatundetaiwo5184
    @babatundetaiwo5184 Před 5 měsíci +1

    Fantastic video. This video helped a really big project I am working on. I appreciate it

  • @ilikespaghetti2170
    @ilikespaghetti2170 Před 2 lety +2

    wow this tutorial is the best!!

  • @Omar_Al_Seddik
    @Omar_Al_Seddik Před rokem +2

    This channel is a hidden gem! Subbed.

  • @ricorico222
    @ricorico222 Před rokem

    thanks, nice ez tutorial, i built mine with reactjs and tailwind, thanks for tutorial

  • @nomanraihan4558
    @nomanraihan4558 Před 2 lety +3

    I am sorry with the number of subscribers and views. Bro please never stop uploading videos. You are the inspiration of learning programming. Please upload more videos. Love to see all of your videos. Please make more videos.

    • @ravenjs
      @ravenjs  Před 2 lety +1

      Thank you so much :))

  • @abelkibebe577
    @abelkibebe577 Před 2 lety +5

    Lets gooooo boys, opening Vs

    • @ravenjs
      @ravenjs  Před 2 lety +3

      oh that was crazy quick @abel xD

    • @abelkibebe577
      @abelkibebe577 Před 2 lety +4

      @@ravenjs dude u have no idea how u helped me when u uploaded ur CRUD tutorial.... U r just my "wanna be " guy ... Keep up

    • @ravenjs
      @ravenjs  Před 2 lety +5

      it's so so so great to hear this 🤣 thank you so much man

  • @kaelinvoker2007
    @kaelinvoker2007 Před rokem +1

    excelent video

  • @pavanpyla5977
    @pavanpyla5977 Před 2 lety +5

    Build a chat app with react +nodejs+firebase V9+express js plzzzzzzz

  • @udaykulkarni5639
    @udaykulkarni5639 Před 2 lety +1

    Cant thank you enough bro.. You saved my life.. Earned a new subbb !!! Keep uploading.

  • @user-ye2sw6kf7c
    @user-ye2sw6kf7c Před rokem +1

    thanks so much

  • @pavanpyla5977
    @pavanpyla5977 Před 2 lety +4

    But ur videos are really awesome bro

  • @c3t5
    @c3t5 Před rokem +1

    Hey, great video! What plugins did you use to get your VS code to auto complete so much? it looks so helpful! Thanks :)

  • @udaykulkarni5639
    @udaykulkarni5639 Před 2 lety +1

    I always fail to understand.. Why do these videos and creators dont get the recognition that they deservee😢😢😢😢

  • @nsjsksjn
    @nsjsksjn Před 2 lety +2

    Hi Logicism, any tip to add date to the messages? I tried with moment() but still can´t get the proper data. Pd, thanks you a lot your content!.

  • @trackerprince6773
    @trackerprince6773 Před 2 lety +1

    Using firebase rtdb would be better choice for chat instead of firestore

  • @a89529294
    @a89529294 Před 2 lety +3

    💯💯💯💯💯

  • @wisnu-bjoey3724
    @wisnu-bjoey3724 Před 2 lety +2

    man youre incridible imposibble :D

  • @isitMaaz
    @isitMaaz Před 2 lety +1

    so how can I display names instead of emails in sidebar and topbar? also in my other account, all messages are showing on one side...

  • @lioarce
    @lioarce Před 2 lety

    Im getting this error "TypeError: Cannot read properties of undefined (reading 'includes')", someone know how to solve it?

  • @zhanezar
    @zhanezar Před 2 lety +2

    Hi Love athis video its clear , can you talk more about chaining diffrent requests in firebase like searching for items based on multiple search criterias, for example messages sent by "Name" date less than 1 week, or having a group and getting meesges sent by multiple diffrent people?. it seems like you cant add multiple where() functions to firebase.

    • @ravenjs
      @ravenjs  Před 2 lety +1

      this is a great idea! added to my list :))

  • @SalmanShah95
    @SalmanShah95 Před 2 lety +5

    Build a chat app with react and firebase 9 please.

    • @Omar_Al_Seddik
      @Omar_Al_Seddik Před rokem

      But... That's exactly what the video you're commenting on is about...

  • @Kxffie
    @Kxffie Před 2 lety +4

    So i uploaded it to vercel and it wont let me login? the google sign in popup just closes itself. it works fine in localhost but not anywhere else

    • @ravenjs
      @ravenjs  Před 2 lety +5

      Ah this is a very easy fix. Go to your Firebase Console → Authentication → Sign-in method → Authorized Domains, and add your vercel domain name there

    • @Kxffie
      @Kxffie Před 2 lety +4

      @@ravenjs thank you!

    • @indraadha987
      @indraadha987 Před 2 lety

      @@Kxffie when i deploy to vercel why it goes blank page?i uploaded to github first then deploy to vercel and the result is blank page,do u know the solution to that?

    • @Kxffie
      @Kxffie Před 2 lety

      @@indraadha987 not sure I can help you with that

    • @mohammadmemon
      @mohammadmemon Před 2 lety

      @@indraadha987 send your git repository

  • @udaykulkarni5639
    @udaykulkarni5639 Před rokem

    Hey there ! Getting TypeError: Cannot read properties of undefined (reading 'indexOf')
    And it points to this line
    > 24 | let q = collection(db, "chats", id, "messages");
    Any idea what could be the issue?

  • @aaliyahsymlar5689
    @aaliyahsymlar5689 Před 2 lety +1

    Hi there! I'm wondering if you can show us how to delete messages from a firebase chat app now that we have one created? that's the one feature I still need

    • @ravenjs
      @ravenjs  Před 2 lety +1

      do you mean deleting it from ReactJS UI or from the Firebase console?

  • @indraadha987
    @indraadha987 Před 2 lety +3

    Thanks for this tutorial,but when i deploy to vercel,it shows blank page with no errors,do you know why is that?
    Locally work fine but when i deploy to vercel and netlify,it goes blank page
    Hope u help this 🙏

    • @ravenjs
      @ravenjs  Před 2 lety +1

      you might wanna check your browser developer console for any error outputs. I have a feeling that you're domain name might not be authenticated in your Firebase Console

  • @snowdane3920
    @snowdane3920 Před 2 lety +2

    Is anyone having trouble with sx={{ scrollbarWidth: "none" }} it doesn't seem to work for me

    • @ravenjs
      @ravenjs  Před 2 lety +1

      what browser are you using?

    • @snowdane3920
      @snowdane3920 Před 2 lety +1

      @@ravenjs google chrome

    • @ravenjs
      @ravenjs  Před 2 lety +1

      @@snowdane3920 I think someone mentioned that scrollbarWidth=none only works on Firefox in the comments

    • @snowdane3920
      @snowdane3920 Před 2 lety +2

      @@ravenjs okay, I will leave it in just in case, but I also tried with plain css still no luck... Maybe it is exclusive to Firefox

    • @raphaelgomes7722
      @raphaelgomes7722 Před rokem

      You can use "sx={{ "&::-webkit-scrollbar": { width: "0px" } }}"

  • @rochoe4575
    @rochoe4575 Před 2 lety +2

    How would you make this responsive to mobile devices?

    • @ravenjs
      @ravenjs  Před 2 lety +1

      Chakra UI supports responsive breakpoints when using style props:
      chakra-ui.com/docs/styled-system/responsive-styles

  • @pavanpyla5977
    @pavanpyla5977 Před 2 lety +3

    Bro i have been following your channnel since last month
    Try and complete the flow of react+nodjs+expree js + firebase completely
    By building something.
    U shifted to nextks again its dissapointing bro plzzzZ

    • @ravenjs
      @ravenjs  Před 2 lety +3

      Hahaha alright I'll add this to my list 😉 great suggestion :))

    • @pavanpyla5977
      @pavanpyla5977 Před 2 lety +3

      @@ravenjs ❤

    • @pavanpyla5977
      @pavanpyla5977 Před 2 lety +1

      @@ravenjs Bro try and do some youtube kind of thing withreact + node js and fire v9 pllzzzz

  • @aaliyahsymlar5689
    @aaliyahsymlar5689 Před 2 lety

    Hey there! This app doesn't deploy to vercel.. Getting errors that says this: TypeError: Cannot read properties of undefined (reading 'indexOf') and Error occurred prerendering page "/chat/[id]
    And advice on how to resolve this would be truly helpful! Thanks

    • @abhivyaktsharma
      @abhivyaktsharma Před 2 lety

      were you able to get rid of Cannot read properties of undefined (reading 'indexOf') ?

    • @aaliyahsymlar5689
      @aaliyahsymlar5689 Před 2 lety

      @@abhivyaktsharma nope, I was not.

    • @ravenjs
      @ravenjs  Před 2 lety +1

      Weirdly enough, I've redeployed my Chat App to vercel multiple times recently at chat.yapsh.com, and I didn't get any breaking errors... have you tried deploying the code from my github link without modifying the contents?

  • @TRT_MOOSIC
    @TRT_MOOSIC Před 2 lety

    As usual... Errors started to pour when Installing chakraUI itself...
    I am 14 and a self-taught programmer please help.

    • @muthusivaramakrishnan3578
      @muthusivaramakrishnan3578 Před 2 lety +1

      Try installing from chakra site itself I did it today everything is working in this video

  • @isitMaaz
    @isitMaaz Před 2 lety

    Info for everyone: scrollbarWidth will only work with Firefox!

    • @raphaelgomes7722
      @raphaelgomes7722 Před rokem

      You can use "sx={{ "&::-webkit-scrollbar": { width: "0px" } }}"

  • @assad_bin_wadeen
    @assad_bin_wadeen Před rokem +1

    thanks bro Its usefull

  • @marcamooo
    @marcamooo Před 2 lety +1

    hey Logicism, i am getting a undefined in my console when i attempt the snapshot part at 55:56. Is there an error with my code?
    import { useCollection } from 'react-firebase-hooks/firestore';
    import { collection } from '@firebase/firestore';
    import { db } from '../firebaseconfig';
    export default function Sidebar() {
    const [user] = useAuthState(auth);
    const [snapshot, loading, error] = useCollection(collection(db, "chats"));
    console.log(snapshot);

    • @ravenjs
      @ravenjs  Před 2 lety +2

      the snapshot is undefined for the short period of time in the beginning that it needs to initialize and contact the API, you might have to account for that manually in your code

    • @marcamooo
      @marcamooo Před 2 lety +1

      @@ravenjs ahh that makes sense! thank you so much for the response!