Build a CHAT APP in VUE and FIREBASE using Vue's Composition API

Поделиться
HTML-код
  • Опубликовано: 3 дек 2020
  • Today we learn how to build a chat app in Vue JS and Firebase using the composition API available to us in Vue 3. We look at creating a connection to a firebase database and rendering the data powered by Vue JS to our browser.
    Source Code: github.com/TylerPottsDev/Fire...
    // FOLLOW ME ON TWITTER
    / tyler_potts_
    // MY GEAR FOR CODING AND RUclips
    Blue Yeti Microphone: amzn.to/3jr3l7T
    Microphone Stand: amzn.to/35B9LMN
    Chair: amzn.to/3dWds3F
    Thunderbolt Dock: amzn.to/3osBF6u
    Monitor: amzn.to/37I8KoR
    All of these products I own and have tested!
    // INTERESTED IN GAME DEV?
    Game development channel: / muddywolf
    // CHECK OUT MY GAME
    play.google.com/store/apps/de...
    // DO THESE SIMPLE STEPS
    LIKE, SUBSCRIBE & SHARE

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

  • @maskman4821
    @maskman4821 3 года назад +8

    This is an awesome firebase chat app build with vuejs composition api, excellent step by step instructions and walk through, the ui is beautifully designed, Mr. Tyler Potts is trully a vuejs master and the man !!!

  • @rotorink
    @rotorink 3 года назад

    i combined this with your firebase auth video and works great. thanks. now i just need to add condition if user has already signed up AND created a username then they cannot create an additional username without registering for a new account; and if they are already signed up they will not need to put in there username again to see the chat. liking comments would be a cool feature as well.

  • @nivellen1168
    @nivellen1168 3 года назад +1

    Thank you very much! I was looking for content like that!

  • @RexGalilae
    @RexGalilae 3 года назад +13

    Here before component could even mount

  • @octavian3033
    @octavian3033 3 года назад +7

    Awesome tutorial. Covered everything I needed to know about making a chat app. Firebase was an added bonus.

  • @Frankslaboratory
    @Frankslaboratory 3 года назад +2

    Hi Tyler, thanks for teaching us

  • @heyyy4987
    @heyyy4987 3 года назад +2

    nice.. more advanced relationships with firestore and vue, thanks

  • @programmerrdai
    @programmerrdai 3 года назад +3

    Great Content Keep up the good work !

  • @samratbhaware404
    @samratbhaware404 3 года назад +6

    Yeah Finally You Make One More Vue Application

    • @TylerPotts
      @TylerPotts  3 года назад +5

      And there will be plenty more where that came from too!

    • @tshivhulatshilidzi9209
      @tshivhulatshilidzi9209 3 года назад +1

      Literally subscribed because of this vue tutorial

  • @zaeemansari8828
    @zaeemansari8828 2 года назад +7

    I am getting this error while sending message b__WEBPACK_IMPORTED_MODULE_1__.default.database is not a function

    • @TylerPotts
      @TylerPotts  2 года назад

      Sorry I'm not sure what is causing that 🤔

    • @MrJudsonrodrigues
      @MrJudsonrodrigues 2 года назад

      i have a similar _db__WEBPACK_IMPORTED_MODULE_4__.default.database is not a function :(

    • @MrJudsonrodrigues
      @MrJudsonrodrigues 2 года назад

      I have the same error 🙁

    • @labaks4844
      @labaks4844 2 года назад +1

      pls were you ever able to resolve this? currently facing same.

    • @thihuynh774
      @thihuynh774 2 года назад +1

      Did you fix it ?

  • @hillno
    @hillno 3 года назад +1

    Great video! Yes Authentication please!

  • @mohdshahzaib4094
    @mohdshahzaib4094 3 года назад

    Awesome tutorial, what is your vs code theme name?

  • @MrJesse0007
    @MrJesse0007 2 года назад

    Can i also do this with the options api? How does the MessageRef then works?

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

    How do you set up automatic scrolling for a chat app??

  • @tahsinalmahi8769
    @tahsinalmahi8769 3 года назад

    which vscode theme do you use?

  • @bob00491636352895
    @bob00491636352895 2 года назад

    Very great tutorial. But i get always on deploying vu create a node-sass error. Read a reconfiguring hundert times but have not a big result. Did somebody now this time get started with npm -v 8.10; @vue/cli 4.5.14, Node v16.11.1, package-json i rember (saas-loader 8.0.1). Greetings

  • @wiwilu
    @wiwilu 3 года назад +1

    Quick Question I've never worked with the eslint plugin. I've created the second div container (like 12:31) and it works but the second div is underlined in red and it says "vue/no-multiple-template-root". Did I make a mistake while setting the project up?

    • @TylerPotts
      @TylerPotts  3 года назад +1

      Hmmm weird, that means you haven't wrapped your divs in a single div I think?

    • @wiwilu
      @wiwilu 3 года назад

      @@TylerPotts Edit: Somehow doing v-if and v-else seemed to have fixed this. But I'm still confused why I had this problem and you didn't
      It looks like this (just like in the video):

      ...


      ...

      The second div is marked as a Problem and the description is:
      [vue/no-multiple-template-root]
      The template root requires exactly one element.eslint-plugin-vue

    • @TylerPotts
      @TylerPotts  3 года назад

      @@wiwilu Wrap both those divs inside 1 div!

    • @wiwilu
      @wiwilu 3 года назад +1

      @@TylerPotts Thank you so much for your help! I found my mistake. I can wrap both divs in one div as you said and it works (I had a v-if statement in the first div but no v-else in the second and this didn't work at all). But having v-if and v-else w/o the extra div seems to be working as well.

    • @TylerPotts
      @TylerPotts  3 года назад

      @@wiwilu Oh yes makes sense! You can only have 1 outer element but if you use v-if and v-else it means it would only be one at render :)

  • @tanzimibthesam5861
    @tanzimibthesam5861 3 года назад +1

    Cant we do this with firestore

  • @abdulazeezolanrewaju843
    @abdulazeezolanrewaju843 3 года назад +1

    Nice one bro, good work.. can't we use Firestore? instead of Real Time Db

  • @tiborurban1701
    @tiborurban1701 3 года назад +1

    Heey, whats the name of your vsCode theme?

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

    Hello , I want to create a chat on my website where anyone can chat to my admin only, How can i create it?

  • @flolegend6402
    @flolegend6402 3 года назад +1

    Great video

    • @TylerPotts
      @TylerPotts  3 года назад +1

      Yes I believe you could use cordova for this? but I'm not 100% sure...

    • @JonatanGlader
      @JonatanGlader 2 года назад

      just implement PWA functionality and you can run it as an app

  • @BangNguyen-kz5pn
    @BangNguyen-kz5pn 3 года назад +1

    Nice video. But you forgot inserting github link in the video description.

    • @TylerPotts
      @TylerPotts  3 года назад

      Thanks for reminding me xD - It is now in there!
      But here it is: github.com/TylerPottsDev/FireChat-Vue

  • @rangabharath4253
    @rangabharath4253 3 года назад +1

    Awesome

  • @samirbabayev6269
    @samirbabayev6269 2 года назад

    Good tutorial. Can you please, say the name of the VS Code theme?

    • @drugoviic
      @drugoviic 2 года назад

      for the icons he uses material icons theme

  • @wilmanalfarezi
    @wilmanalfarezi 2 года назад +1

    Can i see how to make this ui,, awesome..

  • @Romeo-vt8hq
    @Romeo-vt8hq 3 года назад

    Content simply won't be added to my database for no reason even though I'm doing completely the same thing

  • @painghtetaung6780
    @painghtetaung6780 2 года назад

    Can u please make one to one chat like private chat.

  • @sophienainghtwe9643
    @sophienainghtwe9643 2 года назад

    bro plz help me bd.database is underfined

  • @abdalrhmanalshafei920
    @abdalrhmanalshafei920 3 года назад

    Can you make chat firebase one to one private chat please ineed it

  • @pauloe9970
    @pauloe9970 3 года назад +1

    Here even though I don't use Vue🤩

    • @TylerPotts
      @TylerPotts  3 года назад +1

      Not all hero's wear capes!

    • @flolegend6402
      @flolegend6402 3 года назад +1

      @@TylerPotts hahaha nice one :D

  • @augischadiegils.5109
    @augischadiegils.5109 2 года назад +1

    ♥️♥️♥️♥️♥️

  • @MuhammadAdnan2.0
    @MuhammadAdnan2.0 3 года назад

    Can we convert this in Android app and serverless ?

    • @TylerPotts
      @TylerPotts  3 года назад

      Umm I'm not sure I haven't really tried

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

    how to build apk file from this code?????

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

    change this : import firebase from 'firebase/app'; to this: import firebase from 'firebase/compat/app';

  • @rargza9169
    @rargza9169 3 года назад +1

    How can i make the scroll to the bottom automatic for new messages?

    • @TylerPotts
      @TylerPotts  3 года назад +1

      Good question! I haven't tried it! I'll look into it for you :D

    • @rargza9169
      @rargza9169 3 года назад +1

      @@TylerPotts thank you darling! I loved your tutorial :]

    • @TemplatesForAfterEffectscom
      @TemplatesForAfterEffectscom 3 года назад

      Any updates on this?

  • @nisino25
    @nisino25 2 года назад

    24:41

  • @programmerrdai
    @programmerrdai 3 года назад +2

    First

  • @anastasiabrikun577
    @anastasiabrikun577 3 года назад

    I'm very thankful for this awesom lesson! One little question: how i can improve this chat and protect mesage string from symbols like Zalgo (H̡̫̤ͭ̓̓̇͗̎̀ơ̯̗͒̄̀̈ͤ̀͡w͓̲͙͋ͬ̊ͦ̂̀̚ ͎͉͖̌ͯͅͅd̳̘̿̃̔̏ͣ͂̉̕ŏ̖̙͋ͤ̊͗̓͟͜e͈͕̯̮͌ͭ̍̐̃͒s͙͔̺͇̗̱̿̊̇͞ ̸ͩͩ͑̋̀ͮͥͦ̊Z̆̊͊҉҉̠̱̦̩͕ą̟̹͈̺̹̋̅ͯĺ̡̘̹̻̩̩͋͘g̪͚͗ͬ͒o̢̖͇̬͍͇̔͋͊̓ ̢͈͂ͣ̏̿͐͂ͯ͠t̛͓̖̻̲ͤ̈ͣ͝e͋̄ͬ̽͜҉͚̭͇ͅx̌ͤ̓̂̓͐͐́͋͡ț̗̹̄̌̀ͧͩ̕͢ ̮̗̩̳̱̾w͎̭̤̄͗ͭ̃͗ͮ̐o̢̯̻̾ͣͬ̽̔̍͟r̢̪͙͍̠̀ͅǩ̵̶̗̮̮ͪ́?̙͉̥̬ͤ̌͗ͩ̕͡) or some non-utf-8 symbols? Thanks for your help. :)