A chat application using node and socket.io
This chat application is a demonstration of a facebook like chat-application ui. It's still in development.
To run this on your local computer, you will need a node script interpreter. You can download and install node from here Download Node interpreter
Download this project in zip format and extract it to a location on your computer
Say location is d:\chat-application
After you have downloaded the applicaton to location, use it as follows.
- Open cmd.
- Change directory to the location
cd d:\chat-application
- Enter the command,
node index.js
here the name of the main file is index.js, - If you are on windows you should see something
like,
debug: socket.io
started or nothing on linux but not any linux showing that node script is running fine. - Open your browser, Open the page http://localhost:8080
- Enter a name.
- There you go. you're connected my friend. and just wait for some to connect to your computer. Oh wait, most probably other people don't know that there is a chat-server running on your computer. Then other option is to open a new tab and be a friend of yours. Note: In case you connect through a same name, you'll be treated as the same person. So use different name everytime use connect as different person. If you don't, pervios login will be descarded and you'll be stop recieving messages.