Build A Realtime Chat App In ReactJS and NodeJS | Socket.io Tutorial | MERN Chat App Using ReactJs

Поделиться
HTML-код
  • Опубликовано: 13 июн 2024
  • In this tutorial we are going to learn how to build a Chat application where you can send and receive messages in realtime. We have used MERN stack approach to develop this app. For more, we have integrated the socket.io on Reactjs client side.
    By following this tutorial you will build the strong basis of nodeJs environment.
    BONUS: We have integrated this Chat App in our Social Media Application built in previous tutorial:
    MERN Social Media: • MERN Stack Social Medi...
    Support me: / zainkeepscode
    Source code: github.com/ZainRk/MERN-Social...
    "Copyright Disclaimer under Section 107 of the copyright act 1976, allowance is made for fair use for purposes such as criticism, comment, news reporting, scholarship, and research. Fair use is a use permitted by copyright statute that might otherwise be infringing. Non-profit, educational, or personal use tips the balance in favor of fair use."
    Time stamps:
    00:00 Intro
    02:24 Overview
    04:12 REST api
    30:01 Frontend
    1:13:30 Socket.io
    1:40:04 Scroll to chat end
    1:42:28 Online Users
    1:47:58 Outro
    Don't forget to hit Subscribe button:
    React Responive Portfolio Website tutorial:
    • React Responsive Portf...
    Reactjs Tailwindcss Music App Landing page:
    • Animated React Website...
    Reactjs Ecommerce Store tutorial for beginners:
    • Ecommerce Store Tutorial
    React Sidebar Tutorial:
    • React js Sidebar | Ani...
    Social Links:
    Instagram: / zainkeepscode

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

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

    Brilliant Effort ... Helped a lot in my first year internship project .

  • @mehdiostadd
    @mehdiostadd Год назад +7

    I learned a lot during this tutorial, You improved my skill extremely. Thank you bro❤.

  • @sheikhmohsin6756
    @sheikhmohsin6756 2 года назад +21

    Extremely good content, your way of teaching is simple and straightforward , and your hard-work is really appreciable.

  • @nicolasportu
    @nicolasportu 2 года назад +31

    Hey! You are my first patreon in 10 years. Your tutorials are insaaaane! Your projects are from 0 to professional production level. Amazing!

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

      Thanks for support. ❤️

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

      @@ZAINKEEPSCODE keep up the good work 💪❤️

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

      Does it have database

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

      Hello css file is missing which make difficult for new subscriber like me please provide css code

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

      @@Benzeno007 css code is in chat.css in pages directory and remaining CSS code is in chatbox.css in components directory

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

    Liked before watching. Thanks for the great content always.

  • @-remoro8133
    @-remoro8133 2 года назад +7

    I will finish your previous project and I will finish this, you are gonna improve our skills to the next level ! Thank you

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

      Thank you too!

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

      @@ZAINKEEPSCODE Brother i didn't found the video of integration of social media backend and frontend please provide.

  • @sujayonly3887
    @sujayonly3887 Год назад +7

    i found this video after going through dozens of videos from big channels
    this video is great because :
    1. great code structure and file structure
    2. very concise
    3. good explaination

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

      hi is final project is working? please reply

  • @gebreigziabherabadi3125
    @gebreigziabherabadi3125 Год назад +6

    Awesome! Easy and clean code. You can make it complete MERN stack dev by adding: comments on post, share post, view profile, etc. Keep it up.

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

      will u please share some resourses to add the functionly which u just added in the comment

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

    the best one i have seen on youtube so far

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

    Thanks man Your tutorial is so awesome, i hope u success in ur journey and happy always 🙏🙏🙏🙏

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

    I sure! I was about to do this. Thanks so much

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

    You just are damn good, You just earned a subscriber..
    can't wait to see more of your work..

  • @mr.shoaibmalik2488
    @mr.shoaibmalik2488 2 года назад +2

    wow thank you so much sir for this beautiful project😍

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

    Bro your channel is gem for frontend devs plz keep up the great work.

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

      Hi Ankit. Are you a fresher and open to opportunities in web development? Have you done projects on ReactJs?

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

    we love you bro you're fantastic !!

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

    You did really great job man only the website needed to be responsive

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

    One of best tutorial in RUclips 🙏🙏🌻

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

      Thanks for like the content. Keep learning

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

    thank you so much bro for your very use full tutorial

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

    Thanks a lot for your video, really love it ❤

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

    Awesome work!

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

    Top notch tutorial man, help deploy it too

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

    this video works , thank you

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

    Great tutorial i learnedd react with your healp i apricot it

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

    Such an Amazing tutorial. Thank you!

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

    Completed successfully 👌 🙌

  • @rohit.1232
    @rohit.1232 2 месяца назад

    thanks i learn alot from this video.

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

    very nice Amazing Masha Allah keep it up

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

    I really appreciate this sir, It's just like I'm the one you did this for

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

    This is the amazing!

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

    you are amazing budddy...

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

    Smart person I ever know ✨

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

    Thanks dude you gave Me New reason to learn react js

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

    Very cool, I hope Deployment Heroku works with this wonderful explanation to complete everything

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

    thanks you sir for this Aswome projects

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

    Thank you!!!

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

    Vraiment waw 👏👏

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

    Thank you ❣️

  • @AmanCoader
    @AmanCoader 5 месяцев назад

    Amazing ❤❤ bro you have made actual clone of whatsapp

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

    You makes coding so much easy for me

  • @codewithkumar8165
    @codewithkumar8165 Год назад +7

    Suggestion: Add functionality to start chat with other users

  • @devhabib
    @devhabib 5 месяцев назад

    again nice

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

    Amazing

  • @DanhNguyen-dd9hk
    @DanhNguyen-dd9hk Год назад

    Thank you

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

    I have subscribed sir

  • @Leo-es3fq
    @Leo-es3fq 2 года назад

    Awesome

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

    good cours

  • @ThanhLe-vt4je
    @ThanhLe-vt4je 2 года назад

    you're awesome

  • @developerdeepu6318
    @developerdeepu6318 2 года назад +6

    Create separate playlist related to this project.

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

    awesome bro , add some new features also like story, comments, repost

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

    greatsss

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

    which extention are you using for node js to give auto suggestion of API in controller

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

    Suggestion: Add functionality to view other profile and start chat with other users

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

    Zain can you make any prerequisite video that will make comfortable before starting out you mern stack video. I know javascript but dont know anything about react,node,socket and mongo.

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

    Wow!

  • @varadaraj.a1566
    @varadaraj.a1566 Год назад

    In your previous video of 3rt part of MERN stack social media app please can you implement a error message if username or password doesn't match or doesn't exist in the database please

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

    Why socket has a separate package.json and folder from the server? does it mean it has also a separate host server?

  • @man-fuji
    @man-fuji 2 года назад

    Is tailwind used for the styling ??

  • @shubhamrajan2488
    @shubhamrajan2488 2 года назад +4

    Great work man, really appreciate it. Please add a video of this application deployment that will really make this project the best tutorial based full stack MERN project.

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

      Hey Shubham. Have you created a project on ReactJs? Are you interested in exploring job/internship opportunities in software development?

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

      @@Hafsa0526 Yes I have done some projects. I am interested in job opportunity.

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

      @@shubhamrajan2488 Hey Shubham. Thanks for responding. For more discussions on the opportunities in software development, you can connect with me using the contact information on my channel.

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

      I am also looking for a job

  • @devhabib
    @devhabib 5 месяцев назад

    nice

  • @ABC-ks8ir
    @ABC-ks8ir Год назад

    Please make a video on deployment also

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

    content is awesome sir. i learn a lot. one thing i will say, keyboard buttons voice is too much

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

    Can we create the main server and socket server in one file or server

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

    please bro make a complete series of MERN Stack development

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

    It's extremely good content but you haven't explained abt how to creates a clusters and some extra stuffs we faced problems there.
    it was very good tutorials but need these. bcoz I m frontend dev not much ideas about backend but if you provided short glimpse then it could be better to do it parallelly with u.

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

    the css file you provided in the github is not correct as in video there are more than 170+ css lines of code and in github there is only 73

  • @shekharchauhan2569
    @shekharchauhan2569 2 года назад +2

    Please implement comment functionality in social media app

  • @VishalRaj-hd3nv
    @VishalRaj-hd3nv 2 месяца назад

    Brother when I am using your code I'm not getting followers in my conversation component and if I am creating chatId manually through postman then I'm able to see followers in conversation component to chat them but I want when I follow someone and he also follow me then automatically cheated should be create and I should be able to see in my conversation component

  • @mikasaackerman-lf2tw
    @mikasaackerman-lf2tw 2 месяца назад

    please link for the previous tutorial for server side. I can't find it.

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

    Amazing tutorial bro...by the way how old you are bro

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

    can I make it as seperate project

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

    Is it necessary to complete ur social media app to build this chat app or can i just build this seperately...?? please reply

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

    What about the functionality of comment and share icon??

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

    hey , can anyone please say me , when jhony deep chat with elon that time in my chat view show my chat UI jhony deep image , but it maybe show elon Profile image is it.

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

    💥🌟

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

    Can someone tell which intellisense or snippet he is using which automatically show the code

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

    How to Deploy this Project Please Upload Video

  • @KOSMOS-so6vw
    @KOSMOS-so6vw Год назад

    Привет у тебя в репозитории все коды не рабочие? вот скачал этот репозиторий а он не работает именно серверная часть
    выдает ошибку 500 при попытке войти в личный кабинет

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

    Rahmat

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

    Please make post view with comments and share options. And making others profile Viewable

  • @gamerfunky
    @gamerfunky 10 дней назад

    Hey bro, can you please add a feature to create new chats for new users?
    Chat does not display new users
    I have to do it using thunder client
    You made a amazing app i really liked it and built it for my college project 😀😀😀😀😀😀😀😀

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

    hey bro is mangoDB connected in this please tell.

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

    Hey, how to add conversations automatically by adding friend?

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

    anyone know which Vscode theme does he using?

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

    good work bro but how do we find another user to chat with ?

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

    Pls as a beginner I want to learn how to setup Vs code to the level that will help me improve my performance.

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

    can we add this chat app in your previous social media app?

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

    I just learned JS (HTML, CSS done too..) but I'm totally worried about what to do next ... planning to do some basic projects. But all these term like React, Node js, Mongodb, Mongoose, next js, particle js, express js seems jargon to me!! now u used socket io... what to do??

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

      First start with react and build some projects with it before moving to the next.

  • @binarybulletin
    @binarybulletin 2 дня назад

    Why you don't provide any middleware to chat and massagemodel like authentication 🙂

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

    Can we make group chats?

  • @ME-er5jd
    @ME-er5jd 2 года назад

    Please, make an eCommerce application with mern stack.

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

    Brother Please make a video on how to Deploy this Project on Vercel.

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

    Isme aap debounce kiu nhi use kiye clients ko kaise pta chlega ki msg type kr rha hai

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

    Hii actually I am facing a little bit difficulty while making this chat I have fully completed the other 3 vedios but while making this chat element my chatBox elements like photo and convo is showing at extreme right below that 4 icons(nav,comments) in actual it should show in the middle like yours.
    Can you pls help me and suggest me something it will be very helpful

    • @_PrakashRajput
      @_PrakashRajput 7 месяцев назад

      How u able to solve this problem I also getting same problem

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

    Deploy kese kre iska bhi video bnadena sir

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

    Sir please upload how to develop this project

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

    Its a group chat or we can create a new chat?

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

    THANK YOU SO MUCH ZAINKEEPSCODE!

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

    Sir please make a video on how to Deploy Your Social Media app on Vercel.

  • @user-wm5vc5mc1h
    @user-wm5vc5mc1h 5 месяцев назад

    how to create Mongo Db database and other thing's for this project

  • @user-ez2nr1ww1w
    @user-ez2nr1ww1w 6 месяцев назад

    Thanks but can you order these videos to know the right way to see them