Demo : https://www.useloom.com/share/bf73f5e40c3048bdbb2aca01c10eac92
*make sure ur installed npm & node check out with: npm -v & node -v
- mkdir socket.io & cd socket.io
- git clone https://github.com/Mahmoud-Italy/real-time-Private-Chat-using-Socket.io-Nodejs-mySql.git
- npm init
- npm install
- npm install socket.io
- npm install socket.io mysql ( in case u want save it in mysql DB * if u want use mongoDB or NoSQL use another package )
- node server.js
- http://localhost:4320
That it Have Fun :)
If you want run node.js at background of server and never stop use "pm2" package Don't laugh i just saved 30 min of your researching time :D