Skip to content

Rohit-rk07/Real-Time-Chat-Application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ’¬ Real-Time Chat Application

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.


πŸ“ Project Structure

Real-Time-Chat-Application/
β”‚
β”œβ”€β”€ client/         # React frontend
└── server/         # Express backend with Socket.IO

βš™οΈ Setup Instructions

βœ… Prerequisites

  • Node.js (v16 or above recommended)
  • npm (comes with Node.js)

πŸ”§ Backend Setup (server/)

  1. Open a terminal and navigate to the server/ directory:

    cd server
  2. Install the dependencies:

    npm install
  3. Start the server:

    npm run dev

    The backend server should run on http://localhost:5000 (or whichever port is defined in your app.js).


πŸ“₯ Clone the Repository

git clone https://github.com/Rohit-rk07/Real-Time-Chat-Application.git
cd Real-Time-Chat-Application

🎨 Frontend Setup (client/)

  1. Open another terminal and navigate to the client/ directory:

    cd client
  2. Install the dependencies:

    npm install
  3. Start the development server:

    npm run dev

    The frontend should now run at http://localhost:5173 by default.


🌐 Usage

  • Go to the frontend URL (e.g., http://localhost:5173).
  • Enter a unique id ,name and password.
  • Start chatting in real-time with others!

πŸ‘€ Author

Rohit – GitHub

Releases

No releases published

Packages

No packages published