Creating simple chat with node.js and socket.io

1. Create a new directory folder called ‘node’ in any of the partitioned local drive.
2. Open command prompt and open the ‘node’ directory.
3. Paste the code to install socket.io, express, and jade files

node.js1
And wait until the installation get completed.

4. Create app.js file and fill it with the following code.

5. Create index.html file and fill it with the following code.

6. Open the command prompt.
Choose the directory, and Use the code to execute the server

node.js2

7. Open a browser and use ‘localhost:8080’ this to run.

8. Open another new window with the same url to see the changes

ex_nodechat