A simple chat application I made with Node.js and Socket.io.
This started out with Socket.io's basic chat application tutorial.
I made this mainly just to try out and learn how to use Node.js and Socket.io, but anyone is welcome to use and improve this.
Obviously, you'll need Node.js to use this. Get it from the Node.js downloads page.
Follow these steps to setup and run the chat application on your computer:
-
Clone this repository and then go to the directory.
$ git clone https://github.com/NathanCJohnson/NodeJS-Chat.git $ cd NodeJS-Chat
-
Use Node Package Manager (included with Node.js) to install the dependencies.
$ npm install
-
Run the chat application server.
$ node chat.js
If everything worked out properly, you should be able to access the chat application at http://localhost:3000/
.
See any code you think you can improve? Want to add a feature? Go ahead and fork this repository and submit a pull request with your improvements!