Create Real-time Chat App using HTML, CSS, JavaScript, NodeJS & Socket.io | Full Video

  Рет қаралды 158,700

Codingflag

Codingflag

Күн бұрын

Пікірлер: 259
@scottforbes0
@scottforbes0 2 ай бұрын
This is a tidy example of the project I’m working on, that uses a Python Websockets server and a Web front end. I can definitely learn from this, thank you.
@klaus4945
@klaus4945 3 жыл бұрын
You are doing great job!!! Hope someday u will do voiceover while writing code!!! God bless You
@philipskird8649
@philipskird8649 Ай бұрын
thanks for teaching me how to import correctly the node.js modules. in a short video. its so importent for easy online games too , that informations :-)
@amanchaturvedi5334
@amanchaturvedi5334 3 жыл бұрын
Because ur demonstration and implementation is awesome great learning for me 😄👍🙏
@Codingflag
@Codingflag 3 жыл бұрын
Glad to hear that!
@getsetalk
@getsetalk 2 жыл бұрын
Really helpful, please make video on P2P file transfer and chat system like WhatsApp
@aviatsports
@aviatsports 9 күн бұрын
great video! i was also wondering how you could make it so that you can use it sorta like a customer service live chat?
@Collossus-vc6wt
@Collossus-vc6wt Жыл бұрын
Nice work! Watched it on speed 1.5 and it looked perfect!
@Codingflag
@Codingflag Жыл бұрын
Glad it helped.
@wierdpig1056
@wierdpig1056 Жыл бұрын
@@Codingflag is it local ?
@aniketjoshi6286
@aniketjoshi6286 2 жыл бұрын
PLease Give source code of this project
@buddyhartono6496
@buddyhartono6496 3 жыл бұрын
Awesome Tutorial 👍👍👍👍👍
@vhiroley
@vhiroley 3 жыл бұрын
Lovely Bhai 🤗👌👌
@fidelmudzamba2029
@fidelmudzamba2029 6 ай бұрын
This is really good. Source code would have been nice too
@noormohammadsazesh897
@noormohammadsazesh897 Ай бұрын
Good job, which font are you using?
@iamadeal
@iamadeal Жыл бұрын
It's really good. Can i get the source code please?
@_developer__6414
@_developer__6414 3 жыл бұрын
Yo u doin awesome things man, keep going!
@jgartdesignmarcenariaartes6202
@jgartdesignmarcenariaartes6202 Жыл бұрын
Great job! nice work
@Codingflag
@Codingflag Жыл бұрын
Thanks a lot!
@alexdemeter1558
@alexdemeter1558 Жыл бұрын
Amazing job keep it going also source code please
@aleksboboychev
@aleksboboychev Жыл бұрын
Nice work!
@sammedkumarchougala4912
@sammedkumarchougala4912 4 ай бұрын
Thank you sir
@rangabharath4253
@rangabharath4253 3 жыл бұрын
Awesome as always 👍😀
@eliebouley
@eliebouley Жыл бұрын
Speechless ! Please wich IDE you use ? 😊😊😊
@Codingflag
@Codingflag Жыл бұрын
sublime text
@eliebouley
@eliebouley Жыл бұрын
@@Codingflag Thanks sir
@faygaming4355
@faygaming4355 Жыл бұрын
Great work my men. Can I get the source code please?
@F7682
@F7682 3 ай бұрын
Awesome its working brother👍 but problem is that when new user joined it does not showing anything
@Codingflag
@Codingflag 3 ай бұрын
check is there any error on console. DM me on instagram, I will help to debug.
@F7682
@F7682 3 ай бұрын
@@CodingflagThank you brother now my problem is solved and it's working 👍 sorry brother I am not using Instagram and Facebook😅 thank you for your support brother ❣️
@badrivenkatesan6045
@badrivenkatesan6045 3 жыл бұрын
Could you please show a class diagram of this P2P system with how you handle the notifications like "Person A joined the chat"
@Codingflag
@Codingflag 3 жыл бұрын
There is no class used to build this system, so class diagram is not possible.
@reactteamwdp7648
@reactteamwdp7648 2 жыл бұрын
thank you so much sir
@sirjoi1628
@sirjoi1628 Жыл бұрын
Hello, what program are you using on "1. Setting up project". Please tell us!
@lassyamiriyam5981
@lassyamiriyam5981 Жыл бұрын
Can I do this project in vs code directly without any installation as you shown in viedo or tell what application should I install in vscode to do this project please
@srikantsoni9700
@srikantsoni9700 11 ай бұрын
i have coded the whole by myself but its not working...it would be appreciated if you can share the source code 🙏
@AlexTheDev1
@AlexTheDev1 11 ай бұрын
Me too!
@rajatvashistha1665
@rajatvashistha1665 Жыл бұрын
very helpfull tyyy
@slmmaula_
@slmmaula_ 2 жыл бұрын
Why is my join button not working? Please help me
@HerbyScott
@HerbyScott Жыл бұрын
Not only you bro
@HerbyScott
@HerbyScott Жыл бұрын
Did you find a solution?
@nothing-jr4bm
@nothing-jr4bm 2 жыл бұрын
Sir, everything is fine and properly working but my ''left the conversation" is not working but joined the conversation is working
@Codingflag
@Codingflag 2 жыл бұрын
can you check your socket listener name is written properly in both server and client side. Also you can check console to get proper error information. Reply to this if you face any error / issue along with your code.
@nothing-jr4bm
@nothing-jr4bm 2 жыл бұрын
@@Codingflag bug is fixed sir thank u for this amazing video
@Kuyanelsontv24
@Kuyanelsontv24 2 ай бұрын
Sir good day can i have the source code of this chatbbox
@someone-4k
@someone-4k Жыл бұрын
Thanks very much😊keep it up bro.
@Codingflag
@Codingflag Жыл бұрын
Thank you too
@zamyilton
@zamyilton 2 жыл бұрын
Please what is the name of the application used in the beginning
@Codingflag
@Codingflag 2 жыл бұрын
Its linux terminal
@zamyilton
@zamyilton 2 жыл бұрын
@@Codingflag thanks
@nelsonmuzahura6265
@nelsonmuzahura6265 3 жыл бұрын
woooow
@baburao.creates
@baburao.creates 2 жыл бұрын
bro i am getting this error Uncaught TypeError: Cannot read properties of null (reading 'addEventListener') in code.js pls help me out
@Codingflag
@Codingflag 2 жыл бұрын
Can you share code so that I can help to debug. Also make sure you have added script tag at the end of body tag.
@baburao.creates
@baburao.creates 2 жыл бұрын
@@Codingflag bro will this work perfectly if i upload it to production
@Codingflag
@Codingflag 2 жыл бұрын
yes
@manojgmanojg9600
@manojgmanojg9600 2 жыл бұрын
Sir Everything is working well and good ,but when two person joined like ex join and left the conversation mssg is not displaying pls tell how to solve this error.
@Codingflag
@Codingflag 2 жыл бұрын
For this you need to maintain database of messages so that it can persist after logout. I have created one tutorial where I have used firebase as database and svelte. You can check that.
@manojgmanojg9600
@manojgmanojg9600 2 жыл бұрын
@@Codingflag okk sir
@tohirramazonov-mk1dp
@tohirramazonov-mk1dp 7 ай бұрын
great
@tito5540
@tito5540 2 жыл бұрын
what is the black screen platform called and the white screen ?
@Codingflag
@Codingflag 2 жыл бұрын
Sublime text is code editor and Terminal is CLI tool
@sbiofficial658
@sbiofficial658 3 ай бұрын
Wow
@jegwaar6018
@jegwaar6018 Жыл бұрын
i just wanna know does all messages will disapear after everyone logout. want some admin control like i can delete msg send by anyone but also collect some detail of person that sent msg so that i wont be in totaly dark. blocking a person block there ip to join room for 24 hr. if you could help me please i'm making a project first time
@WaydeWise
@WaydeWise Жыл бұрын
what theme do you use in sublime text?
@Codingflag
@Codingflag Жыл бұрын
Guna
@WaydeWise
@WaydeWise Жыл бұрын
@@Codingflag thx
@xmythicgamingx2868
@xmythicgamingx2868 3 жыл бұрын
Nice its working
@anonymoussaif7361
@anonymoussaif7361 3 жыл бұрын
Where the data will be store??
@Codingflag
@Codingflag 3 жыл бұрын
It's not stored anywhere, messages will be sent instantly to all room members. If you want to store message, I have created one video where I have used firebase to store messages.
@Nishant-f4w
@Nishant-f4w 10 ай бұрын
Tell all the commands prompted in windows in terminal.
@Codingflag
@Codingflag 10 ай бұрын
Install git bash software and after that use bash terminal which supports these linux commands. basically below are the commands and their uses 1. touch - use to create file. You can create file using any of the way in windows. 2. cd - this also works in windows 3. npm - install nodejs on your machine to execute this.
@Kool_Conor
@Kool_Conor Жыл бұрын
can you join from diferent computers?
@ahmedelmaqri4576
@ahmedelmaqri4576 7 ай бұрын
bro common
@rockstarsai19
@rockstarsai19 9 ай бұрын
bro, I am getting the white screen when i active the chat screen
@Codingflag
@Codingflag 9 ай бұрын
Any error on console?
@shemavictoire
@shemavictoire Жыл бұрын
thx very much
@Codingflag
@Codingflag Жыл бұрын
You're welcome!
@VarshithaPatil
@VarshithaPatil 5 ай бұрын
In which application we can create that mkdir..??
@Codingflag
@Codingflag 5 ай бұрын
If you are using windows then use command prompt or download git bash software. You don’t even need to use commands. You can do it using interface. mkdir = create folder with given name touch = create file with given name
@amanchaturvedi5334
@amanchaturvedi5334 3 жыл бұрын
Can I write this code in vs code please respond me??
@Codingflag
@Codingflag 3 жыл бұрын
yes
@lionel9038
@lionel9038 Жыл бұрын
What do I have to do differently for a group chat?
@Bodige_Sri_Charan_Goud
@Bodige_Sri_Charan_Goud 4 күн бұрын
Bro can you tell me the steps to host in server... I want to share the web site link to my guide
@Wander_Lens
@Wander_Lens 2 жыл бұрын
Bro can you tell me which node module i have to install for this project
@Codingflag
@Codingflag 2 жыл бұрын
express & socket.io
@Wander_Lens
@Wander_Lens 2 жыл бұрын
@@Codingflag npm install 🤩
@Reaperdip
@Reaperdip Жыл бұрын
how does sockets know or recognize the Type ?
@smartycode
@smartycode 2 жыл бұрын
all the places seems to go fine, but isn't work to display message and when im inspecting it give me the message that Uncaught TypeError: Cannot read property 'addEventListener' of null so what shall i do
@Codingflag
@Codingflag 2 жыл бұрын
can you share your code so that I can help.
@Saggiskate
@Saggiskate 2 жыл бұрын
how could I implement in the code a test to see if the username exists, so that I don't have two users with the same nickname? Thanks
@Codingflag
@Codingflag 2 жыл бұрын
Create global array in node and add username into that array when user joins and remove it when user leaves. Before joining the user, just check from maintained userlist array.
@Saggiskate
@Saggiskate 2 жыл бұрын
@@Codingflag Thank you I have done it and it worked very well. I have one more question, is it possible to create a fixed administrator role to delete or remove users from the chat?
@Codingflag
@Codingflag 2 жыл бұрын
Yes you can create it just create one more page from where you can manage that users array.
@invisible2795
@invisible2795 3 жыл бұрын
Nice 👍 can I get source code? 😊
@Codingflag
@Codingflag 3 жыл бұрын
Code is right there after demo part. If you face any issue while running it, message me on instagram along with github code link
@FREEDOM_SIDE
@FREEDOM_SIDE 2 жыл бұрын
@@Codingflag aM Having issues intergrating with my application
@jaypaul3484
@jaypaul3484 2 ай бұрын
@codingflag brother localhost page is not updating even after completing index.html code, server page is keep showing This is HTML Please help
@EugeneAddo-r2b
@EugeneAddo-r2b 8 ай бұрын
Can it connect two different devices
@Codingflag
@Codingflag 8 ай бұрын
yes. for that you need to host it on server
@EugeneAddo-r2b
@EugeneAddo-r2b 8 ай бұрын
But can I use vscode's server
@Codingflag
@Codingflag 8 ай бұрын
no. In that case you can only use it for devices within your local network
@hanglethibich6835
@hanglethibich6835 Жыл бұрын
Can you application windows ?
@SchoolBoyJoooooo
@SchoolBoyJoooooo 7 ай бұрын
i have a problem, when i try to join chat my program stay at the join screen. I already follow all your step, could you help me with this?
@Codingflag
@Codingflag 7 ай бұрын
can you upload your code on git and share link or DM link on insta so that I can help to debug
@SchoolBoyJoooooo
@SchoolBoyJoooooo 7 ай бұрын
@@Codingflag ahhhh no worries, i already solved the problem thankyou for responding tho.
@Marcus_405
@Marcus_405 6 ай бұрын
@@SchoolBoyJoooooo so what's the fix?
@SchoolBoyJoooooo
@SchoolBoyJoooooo 6 ай бұрын
@@Marcus_405 miss type variables in css, in messages i didnt type the 's' (message)
@misqajap9945
@misqajap9945 6 ай бұрын
​@@SchoolBoyJoooooohow bro?
@roshankumarb3257
@roshankumarb3257 Жыл бұрын
Bro.... This is a very nice session. Can I get your github id?
@suneelmekala54
@suneelmekala54 Жыл бұрын
I am getting an error : io is not defined.
@ahmedallawi8638
@ahmedallawi8638 7 ай бұрын
Make sure the library is installed
@sunbertyv3947
@sunbertyv3947 Жыл бұрын
This is incredibile but can this chatroom be share?
@LEARNANDEARN421
@LEARNANDEARN421 9 ай бұрын
bor i am getting an errro when i enter chat from one tab and then from other tab to chatroom the first one already comes to the first page means reload
@programmerchauhan658
@programmerchauhan658 2 жыл бұрын
How to make it not a personal so that every family has their own? Please tell
@Codingflag
@Codingflag 2 жыл бұрын
Host this app on heroku server.
@programmerchauhan658
@programmerchauhan658 2 жыл бұрын
@@Codingflag thank sir
@Bodige_Sri_Charan_Goud
@Bodige_Sri_Charan_Goud 4 күн бұрын
@programmerchauhan658 Bro did you host this to server...!??
@AbelAbel-le3pg
@AbelAbel-le3pg 5 ай бұрын
Is its likw random chat
@invisible2795
@invisible2795 3 жыл бұрын
Bhai ye app only sample h ya install bhi kr skty hen agr play store per ho to link send kr dena mje thanks 😊
@Codingflag
@Codingflag 3 жыл бұрын
This is web app, you can make android app from this using cordova
@sethunthunder
@sethunthunder Жыл бұрын
how do i save the chat?
@yechielrosenzweig8790
@yechielrosenzweig8790 Жыл бұрын
How I get the sources files?
@TGBDOfficial
@TGBDOfficial 2 жыл бұрын
how can i get the code?
@niketnayan1020
@niketnayan1020 2 жыл бұрын
I am not able to deploy it. Can you please help me?
@Codingflag
@Codingflag 2 жыл бұрын
kzbin.info/www/bejne/hGaui5uOprGcZqs I have created video on nodejs app deployment on heroku. If you are still facing issue then DM me on instagram.
@pocoace5415
@pocoace5415 2 жыл бұрын
the code.js wont work in me idk why
@Codingflag
@Codingflag 2 жыл бұрын
Can you share error if any
@МихаилПавлюкевич-с2ы
@МихаилПавлюкевич-с2ы 3 ай бұрын
I did everything as in the video, but the buttons do not work, does not enter the room and does not send messages How can I fix this?
@Codingflag
@Codingflag 3 ай бұрын
DM on instagram, I will help you to debug the issue
@programmerchauhan658
@programmerchauhan658 2 жыл бұрын
Tell all software used making this site
@Codingflag
@Codingflag 2 жыл бұрын
sublime text 3 chrome browser terminal / command prompt node js
@programmerchauhan658
@programmerchauhan658 2 жыл бұрын
@@Codingflag thank you sir
@charliechicco1861
@charliechicco1861 Жыл бұрын
This is great!!!. How do l host is online now
@Codingflag
@Codingflag 11 ай бұрын
Host it on heroku, you can find tutorials on youtube.
@Saske443
@Saske443 3 жыл бұрын
source code? pls
@jfkongphop
@jfkongphop 2 жыл бұрын
have github repo?
@manish_aravindh_2007
@manish_aravindh_2007 2 жыл бұрын
Dose people can chat online using this project? How many people can chat at the time?
@Codingflag
@Codingflag 2 жыл бұрын
It depends on max socket connections supported by your machine.
@quannguyenhuaminh2944
@quannguyenhuaminh2944 2 жыл бұрын
do you have github, can i get source pls ?
@Unknown-il3md
@Unknown-il3md Жыл бұрын
my code isn't showing joined conversation at end and cannot see other typing
@kavitawani3682
@kavitawani3682 9 ай бұрын
my also u get any solution
@akhilv.a9155
@akhilv.a9155 Жыл бұрын
is there the code available
@htmoh8115
@htmoh8115 2 жыл бұрын
are you using VSC?
@Codingflag
@Codingflag 2 жыл бұрын
no. its sublime text 3
@htmoh8115
@htmoh8115 2 жыл бұрын
@@Codingflag ok
@onlyshort1302
@onlyshort1302 Жыл бұрын
My joining page is not working
@carefree_ladka
@carefree_ladka 2 жыл бұрын
Add private chat functionality
@ninjaboiz128
@ninjaboiz128 2 жыл бұрын
source code please
@HerbyScott
@HerbyScott Жыл бұрын
My join button don't work help me please
@alkapriyadarshini8347
@alkapriyadarshini8347 4 ай бұрын
Sir what's your github id?
@shubhammusale692
@shubhammusale692 Жыл бұрын
Thank u bro u are awesome it helped me a lot Totally working 😘😘😘😘😍😍😍😇😇😇😇😇😇😇🥰🥰🥰🥰🥰🥰
@Codingflag
@Codingflag Жыл бұрын
Glad to hear that
@shubhamgarg5007
@shubhamgarg5007 3 жыл бұрын
Its great but can I get the source code please?
@Codingflag
@Codingflag 3 жыл бұрын
sure, I will put it in git and update you
@Codingflag
@Codingflag 3 жыл бұрын
github.com/imgitto/Chatroom
@klaus4945
@klaus4945 3 жыл бұрын
@@Codingflag Thx bro!!
@VikashYadav-km5gk
@VikashYadav-km5gk Жыл бұрын
When running this command: node server.js node:internal/modules/cjs/loader:1051 throw err; ^ Error: Cannot find module 'C:\Users\Yadav\Documents\Chatroom\server.js' at Module._resolveFilename (node:internal/modules/cjs/loader:1048:15) at Module._load (node:internal/modules/cjs/loader:901:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12) at node:internal/main/run_main_module:23:47 { code: 'MODULE_NOT_FOUND', requireStack: [] } Node.js v20.5.1 How to solve this error...
@Fort_Frenzy
@Fort_Frenzy 3 ай бұрын
Where did you make the server.js?
@PranotSolase
@PranotSolase Жыл бұрын
Touch is not recognized as an internal external command error
@HerbyScott
@HerbyScott Жыл бұрын
Use type nul
@adityaakmal207
@adityaakmal207 Жыл бұрын
in 23:40 my console throw me an error "Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'username')" how solution?
@Codingflag
@Codingflag Жыл бұрын
Can you please upload code on git or any other platform and share link .. so that I can help to debug.
@estebanmolina7929
@estebanmolina7929 2 жыл бұрын
Im in 19:53, the console throw me an error "Uncaught ReferenceError: io is not defined" but io it was defined in server.js but it also does not allow me to use "require" because the console throw me the same error "Uncaught ReferenceError: require is not defined"
@Codingflag
@Codingflag 2 жыл бұрын
You can use another cdn link for socket.io library.
@zamyilton
@zamyilton 2 жыл бұрын
Hello, mine works well but when I go incognito mode, they don't see each other. I've tried opening normal tab, but they still don't see each other, it doesn't show joined conversation or left conversation, and when I say hello on one tab, it doesn't show on the other tab. But everything else is fine. What can I do??
@zamyilton
@zamyilton 2 жыл бұрын
And besides I'm using the latest socket. Which do I link to my html??
@zamyilton
@zamyilton 2 жыл бұрын
And is there any possible way to transfer to my phone 😂
@Codingflag
@Codingflag 2 жыл бұрын
can you share your code so that I can help to debug.
@DominicNweze
@DominicNweze 2 жыл бұрын
@@zamyilton turn it into an app. Or put the code on a mobile editor.
@kavitawani3682
@kavitawani3682 9 ай бұрын
Hello, mine works well but when I go incognito mode, they don't see each other. I've tried opening normal tab, but they still don't see each other, it doesn't show joined conversation or left conversation, and when I say hello on one tab, it doesn't show on the other tab. But everything else is fine. What can I do??@@Codingflag
@Youcan352
@Youcan352 Жыл бұрын
can you share the code? please.
@Anime_editz67
@Anime_editz67 2 жыл бұрын
Can you give src code
@mihirsarvaiya4882
@mihirsarvaiya4882 3 жыл бұрын
Where are you write the code?
@Codingflag
@Codingflag 3 жыл бұрын
sublime text
@unlimitedchillan6143
@unlimitedchillan6143 3 жыл бұрын
@@Codingflag probably
@leandrohenrique6056
@leandrohenrique6056 Жыл бұрын
❤️🙏🏽
@abfkabbo6118
@abfkabbo6118 Жыл бұрын
Can you provide the source code pls??
@RohitKumar-zp6ci
@RohitKumar-zp6ci 6 ай бұрын
20:18 my join button is not working, i checked but couldn't find what went wrong
@Codingflag
@Codingflag 6 ай бұрын
You can check console to check the errors.
@raunakkumarmishra1449
@raunakkumarmishra1449 4 ай бұрын
@RohitKumar-zp6ci same issue, do you find any bug?
@RohitKumar-zp6ci
@RohitKumar-zp6ci 4 ай бұрын
​@@raunakkumarmishra1449 I was trying to run only the index.html file
@maro_xd1295
@maro_xd1295 Жыл бұрын
it doesn't work can you take a look :(
Build To-Do App with Auto Save using HTML, CSS & JavaScript
33:12
Build a Real Time Chat App With Node.js And Socket.io
17:12
Web Dev Simplified
Рет қаралды 558 М.
HELP!!!
00:46
Natan por Aí
Рет қаралды 75 МЛН
Motorbike Smashes Into Porsche! 😱
00:15
Caters Clips
Рет қаралды 23 МЛН
Кто круче, как думаешь?
00:44
МЯТНАЯ ФАНТА
Рет қаралды 5 МЛН
Socket.io + ReactJS Tutorial | Learn Socket.io For Beginners
32:35
I built a chat app in 7 minutes with React & Firebase
8:53
Fireship
Рет қаралды 1,4 МЛН
Want to make a chat app? Get Real-time With WebSockets & Socket.io!
1:31:40
Good Morning Developers
Рет қаралды 17 М.
Best way to learn Socket IO | complex chat app
19:52
Hitesh Choudhary
Рет қаралды 117 М.
WebSockets in 100 Seconds & Beyond with Socket.io
8:31
Fireship
Рет қаралды 1 МЛН
WebSocket in NodeJS | Socket.IO - Real Time Messaging
32:27
Piyush Garg
Рет қаралды 197 М.
How ChatGPT Built My App in Minutes 🤯
8:28
Website Learners
Рет қаралды 2,7 МЛН
HELP!!!
00:46
Natan por Aí
Рет қаралды 75 МЛН