- Make sure that you have npm and Node.js installed. If not, first install them on your local machine.
- After doing that, download and extract the files to a folder, say 'Chat-Bot'.
- Open the terminal and change the working directory to the 'Chat-Bot' folder(make sure you are inside the main directory which has server.js and all the other files).
- Now in the terminal, type: node server.js
- In the terminal you'll see a message: Server is running
- Now open a browser and go to the url: http://localhost:3000/
- You are in the chat room now. Enter your username and click the Login button, then you'll be shown the chat room window where you can type messages.
- You can also see the list of all the online users, inside a box.
- For a check, open a new tab and repeat step 5-6 but with a different username.
- You can see that the online users list has been updated in realtime and also the text messages.
- Also if a user closes the window, his/her name will be removed from the list of online users, instantly.
-
Notifications
You must be signed in to change notification settings - Fork 0
Mehulcoder/Chat-Room
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description or website provided.
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published