Simple chat project, written in NodeJS using socket.io for college network class.
In order to run the project, you'll need to have NodeJS and git, in case that you already have it, you can go to next section: Running the project. To install Nodejs, npm and git, read below
$ sudo apt update
$ sudo apt install git
$ sudo apt install nodejs npm$ sudo pacman -Syu
$ sudo pacman -S git
$ sudo pacman -S nodejs npm$ sudo pkg update
$ sudo pkg install git
$ sudo pkg install node$ pkg update
$ pkg upgrade
$ pkg install git
$ pkg install nodejsTo make sure that Nodejs, npm and git work correctly, you need to write the following commands
$ git -v
$ node -v
$ npm -vTo start texting, you need to clone the repository and run server.js
$ git clone https://github.com/VadymHvas/nodejs-socket-chat.gitGo to the project directory
$ cd nodejs-socket-chatInstall dependencies
$ npm installRun server (default port 4000)
$ node server.jsЕhe URL of the server that processes requests will be displayed in the logs. An example is below
Server is running, Server IP: 192.168.0.5To connect to the chat, you need to copy the IP address and execute the command below
$ node client.js *paste IP address*