A real-time chat web application built with React.js on the frontend and Node.js + Express + Socket.IO on the backend. Users can join chat room and communicate instantly via WebSockets.
Real-Time-Chat-Application/
β
βββ client/ # React frontend
βββ server/ # Express backend with Socket.IO
- Node.js (v16 or above recommended)
- npm (comes with Node.js)
-
Open a terminal and navigate to the
server/
directory:cd server
-
Install the dependencies:
npm install
-
Start the server:
npm run dev
The backend server should run on
http://localhost:5000
(or whichever port is defined in yourapp.js
).
git clone https://github.com/Rohit-rk07/Real-Time-Chat-Application.git
cd Real-Time-Chat-Application
-
Open another terminal and navigate to the
client/
directory:cd client
-
Install the dependencies:
npm install
-
Start the development server:
npm run dev
The frontend should now run at
http://localhost:5173
by default.
- Go to the frontend URL (e.g.,
http://localhost:5173
). - Enter a unique id ,name and password.
- Start chatting in real-time with others!
Rohit β GitHub