Real Time Chat App with Users, Rooms | Node.js, Express, Socket.io

Sdílet
Vložit
  • čas přidán 28. 07. 2024
  • Web Dev Roadmap for Beginners (Free!): bit.ly/DaveGrayWebDevRoadmap
    How to build a Real Time Chat App with Users, Rooms | Node.js, Express, Socket.io. In this 5th video of the Chat App series, we will learn about Socket.io chat rooms and apply what we have learned to build a complete real time chat application.
    💖 Support me on Patreon ➜ / davegray
    ⭐ Become a full-stack web dev with Zero To Mastery Courses:
    - Complete Next.js Developer: bit.ly/CompNextJSDev
    - Advanced React: bit.ly/AdvReactDev
    - Junior to Senior Dev Roadmap: bit.ly/WebDevRoadmap-JrtoSr
    🚩 Subscribe ➜ bit.ly/3nGHmNn
    📬 Course Updates ➜ courses.davegray.codes/
    ❓ Questions - Please post them to my Discord ➜ / discord
    ☕ Buy Me A Coffee ➜ www.buymeacoffee.com/davegray
    👇 Follow Me On Social Media:
    GitHub: github.com/gitdagray
    Twitter: / yesdavidgray
    LinkedIn: / davidagray
    🔗 Source Code: github.com/gitdagray/build-ch...
    🔗 Playlist for this Building a Chat App Course: • Building a Chat App
    Build a Real Time Chat App with Users & Rooms
    (00:00) Intro
    (00:10) Welcome
    (00:31) Lesson Goals & Project Overview
    (02:07) Starter Code
    (02:38) HTML
    (07:23) CSS
    (08:00) Client-side JavaScript - Part 1
    (15:18) Node.js Socket.io server
    (40:51) Client-side JavaScript - Part 2
    (55:59) Recommended Additional Features
    (57:20) Deploying the Chat App
    (59:28) Wrap-up
    📚 Tutorial References:
    🔗 Node.js Official Site: nodejs.org
    🔗 MDN WebSockets: developer.mozilla.org/en-US/d...
    🔗 Socket.io Official Site: socket.io/
    🔗 Express Official Site: expressjs.com/
    ⚙ Dependencies:
    🔗 Socket.io: www.npmjs.com/package/socket.io
    🔗 Socket.io Client library: cdnjs.com/libraries/socket.io
    🔗 Express: www.npmjs.com/package/express
    Was this tutorial providing a real time chat app helpful? If so, please share. Let me know your thoughts in the comments.
    #realtime #chat #app

Komentáře • 51

  • @7doors847
    @7doors847 Před 9 měsíci +1

    Amazing Dave! You never fail to deliver amazing content!
    🤘🎸

  • @tejasvix
    @tejasvix Před 9 měsíci

    Well I coded a realtime code editor with chatroom like concept an year ago glad to see this tutorial, keep up the work Dave

  • @tetyanagon3342
    @tetyanagon3342 Před 9 měsíci

    TY, DAVE! Great content! Hope see you soon again.

  • @coderboysobuj
    @coderboysobuj Před 9 měsíci +1

    When ever watch your videos I feel like I am watching Brad's videos. You both are great teacher for my webdev journey

  • @pgrAbhilash
    @pgrAbhilash Před 9 měsíci +1

    Thanks Dave for this beautiful playlist.👌👌

  • @robinsgarlandconsulting
    @robinsgarlandconsulting Před 2 měsíci

    It was a lot of information, but I took a lot of notes even though you gave us class files. Enjoyed it! Tks Dave.

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

    "keep striving for Progress over Perfection, little progress every day will go a very long way"❤ well said Dave

  • @MOJICA7257
    @MOJICA7257 Před 9 měsíci

    Thanks Dave!
    Cheers 🎉🎉🎉

  • @hungnguyencanh5089
    @hungnguyencanh5089 Před 9 měsíci +11

    Thank you 🎉, i hope you will make it with NextJS version ❤

  • @MikeBourbeau
    @MikeBourbeau Před 8 měsíci +10

    Great tutorial, just a minor suggestion for future tutorials to help noobs: Could you check the code in the live browser every once in a while?
    It's helpful to understand what's going on in the browsers while coding is in progress. Errors that pop up or weird prints to console can be demystified if they happen on your end and you say, "this is expected and here's why things look broken or seem off until they're hooked up." Seeing things get hooked up as you go helps to connect the code to the result and reinforce the concepts (for me at least).
    For example, I'm 38 minutes in, but my chat room is printing out "[object Object]" instead of any of the actual string statements. I'm sure something will be hooked up later on or I missed a step and need to backtrack, but not knowing if I'm on track or off can be distracting.

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

    Hey, i followed this tutorial fully but found some key things that needed to be changed, one thing with an easy fix is making the ADMIN string LONGER then your allowed name length, this ensures a user can't send admin messages (or make a blocked names list, would be more of a hassle...), also (and i dont know how to fix it) when starting up the app, you can't see any active rooms, only when the roomList gets called is when you get rooms, yeah that's it, good series 👍

  • @TravinskiyVladislav
    @TravinskiyVladislav Před 9 měsíci

    Thank you Dave

  • @Soft_menu
    @Soft_menu Před 8 měsíci

    i downloaded the source code all i can say is its awesome.Thank you so much for doing this.

  • @HuynhLuong227
    @HuynhLuong227 Před 9 měsíci

    Wow amazing 🎉🎉🎉

  • @Rezzzero
    @Rezzzero Před 9 měsíci

    Thx for this lessons

  • @saturdaysonata
    @saturdaysonata Před 8 měsíci

    Excellent series! How does this translate to a support chat? Lets say I want to build a chat app for an IT helpdesk team, how would that work with regard to creating a queue and letting agents pickup the queue as it comes in etc - would be a great tutorial.
    Also adding some sort of authentication and logging the chat data to a SQL database would also be fantastic to see.

  • @priscilafry7582
    @priscilafry7582 Před 7 měsíci

    Thank you

  • @xppaicyber3823
    @xppaicyber3823 Před měsícem

    Thanks sir

  • @karma5717
    @karma5717 Před 6 měsíci

    Amazing tutorial, I wish if you you could create a new playlist for this using React or Next JS in the Frontend and maybe add some reaction feature like when a user clicks a button that says "Aha!" 3 times then the app will show "Aha! clicked 3 times in less than a minutes"

  • @darrell2150beta
    @darrell2150beta Před 5 měsíci

    I would like to see this project go to the next step and allow for sending graphics such as emojis or individual pictures

  • @shineLouisShine
    @shineLouisShine Před 6 měsíci

    Really cool, clean, and enriching! Thanks a lot :)
    For future tutorials which also include so many functions and inner tasks,
    if it will be possible to divide the code into sections by a simple comment such as:
    "---------------------------------", maybe even with a description - that will be super helpful.
    For example, my code seems to work and it was really hard to track a type of close brackets in the wrong position.
    But a great project nonetheless which really leaves some desire for more..
    (Such as a return (to lobby) button, lobby of chats, geo-location service, and more..)

    • @shineLouisShine
      @shineLouisShine Před 6 měsíci

      p.s.
      Wow, converting this client into a React jsx component is quite challenging.
      Haven't thought of it during this fasinating series and this might be a suggestion for a great tutorial as well..

  • @SheikhAbdullah-vv5ek
    @SheikhAbdullah-vv5ek Před 7 měsíci

    which theme are you using in vs code

  • @iamprincemuel
    @iamprincemuel Před 9 měsíci +1

    Hi Dave. Awesome work as always. I'd like to make a suggestion. In this video, where you have the show users function, at 52:00, the Intl List Format class in JavaScript can handle the insertion of commas in the user name list. All you have to do is pass it the array of usernames.

  • @stevereid636
    @stevereid636 Před 9 měsíci +1

    This is a great series! 👍🏾 Will you be adding an episode explaining how to incorporate Redis in a chat app?

  • @samadabbas4628
    @samadabbas4628 Před 5 měsíci

    Hi I had a question. If there are three people in the chat room and 2 people are typing at the same time will it show both of their names as typing?

  • @cana_369
    @cana_369 Před 8 měsíci +1

    can you make next video to store this chat app data to mongoDB pls

  • @rahuljaiswal7935
    @rahuljaiswal7935 Před 9 měsíci

    hey can anyone help me I have deployed it on vercel but it is not running. It is only showing the front end part else nothing is working

  • @randith87
    @randith87 Před 2 měsíci

    Can you do it using 2 different computers, as long as it's on the same network? That way you could chat with someone in your house?

  • @TheFogSellers
    @TheFogSellers Před 9 měsíci

    Good content! How many lectures Building a Chat App course/playlist expected to have? Is this the last one?

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Před 9 měsíci +2

      Yes this is the last for now. I may do another series with a different tech stack in the future.

    • @TheFogSellers
      @TheFogSellers Před 9 měsíci

      I've been working almost exclusively with the PERN stack + AWS for the past 2-3 years, and your videos have been invaluable. They're so well-crafted that I find myself watching them, even when the topic isn't directly relevant to my immediate needs. @@DaveGrayTeachesCode

  • @udaramanula915
    @udaramanula915 Před 3 měsíci

    Please make a video of chat app with a database .. React +Nodejs + Socket io + mongoDB

  • @Kang_3
    @Kang_3 Před 7 měsíci

    Nextjs with web socket project pls sir❤

  • @lilmoss16
    @lilmoss16 Před 9 měsíci +1

    No database ?😢

  • @chetankumar9463
    @chetankumar9463 Před 9 měsíci

    Hello sir,
    I was waiting for the last video, now i will start this series.
    I have some questions:
    1. If i use react in this project for frontend then is deployment process remain same as you have done in previous technotes app series or is there any change.
    2. I want a suggestion. Currently i have done React, Node and Mongodb with some projects. Now i want to learn Redux for state management, React testing and Typescript. So between testing, redux and typescript which should i learn first.
    Thank you so much for this series.

    • @rahu1gg
      @rahu1gg Před 8 měsíci

      go with redux, typescript and then testing

    • @chetankumar9463
      @chetankumar9463 Před 8 měsíci +1

      @@rahu1gg thanks 🙏

  • @VinayakSoni98
    @VinayakSoni98 Před 9 měsíci

    lets code together sir. ❤

  • @kerrykreiter445
    @kerrykreiter445 Před 9 měsíci

    Excellent tutorial! Thanks much!! I’m wondering two things….first, can anyone recommend a host with a free tier (like heroku😢), and second, would it be difficult to set up as game lobby and to start a game from a room (like Kali back in the day). Thanks again for this awesome content!!

    • @chetankumar9463
      @chetankumar9463 Před 9 měsíci +1

      Render has a free tier. Only problem with render free tier is that your app will go to sleep if remain inactive for 15 minutes. But it is not a big issue, app will be again live when you will search it.

  • @RahulDas-xf9wh
    @RahulDas-xf9wh Před 3 měsíci

    Can anyone tell where it is maintaining its database

    • @govindamishra3746
      @govindamishra3746 Před 2 měsíci

      I found his tutorial useless tbh , No react, Non existent Express, No DB,No routes,No comtrollers

  • @krisify
    @krisify Před 9 měsíci

    Extend it with webrtc please.

  • @kenzo3477
    @kenzo3477 Před 9 měsíci

    Where's the discord link😢?