Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple NodeJS Socket Chat

Simple chat project, written in NodeJS using socket.io for college network class.

Requirements

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

Installing in Debian-based OS (Debian, Ubuntu, Kali)

$ sudo apt update
$ sudo apt install git
$ sudo apt install nodejs npm

Installing in Arch Linux

$ sudo pacman -Syu
$ sudo pacman -S git
$ sudo pacman -S nodejs npm

Installing in FreeBSD

$ sudo pkg update
$ sudo pkg install git
$ sudo pkg install node

Installing in Termux

$ pkg update
$ pkg upgrade
$ pkg install git
$ pkg install nodejs

Running the project

To make sure that Nodejs, npm and git work correctly, you need to write the following commands

$ git -v
$ node -v
$ npm -v

To start texting, you need to clone the repository and run server.js

$ git clone https://github.com/VadymHvas/nodejs-socket-chat.git

Go to the project directory

$ cd nodejs-socket-chat

Install dependencies

$ npm install

Run 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.5

To connect to the chat, you need to copy the IP address and execute the command below

$ node client.js *paste IP address*

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages