IDChat is a real-time chat application built using React for the frontend, Socket.IO for real-time communication, and Express for the backend server. This is a learning project that inspired by WebDevSimplified to create a simple chat application where users can send and receive messages instantly.
- Real-time messaging
- User-specific chat rooms
Frontend: React, React Bootstrap
Backend: Express, Socket.IO
Styling: Bootstrap
- Make sure you have Node.js and npm installed
- Clone the repository:
git clone https://github.com/yourusername/IDChat.git
cd IDChat
- Install dependencies for the backend:
cd server
npm install
- Install dependencies for the frontend
cd ../client
npm install
- Run the Application
- Start the backend server:
cd server
npm Start
The backend server will start on http://localhost:5001
- Start the frontend Application
cd ../client
npm start
The frontend application will start on http://localhost:3000
IDChat/
├── client/ # React frontend
│ ├── public/
│ └── src/
│ ├── components/ # React components
│ ├── contexts/ # Context providers
│ ├── App.js
│ └── index.js
├── server/ # Express backend
│ ├── server.js
│ └── ...
├── README.md
└── package.json
Backend Configuration: The backend server is configured to use CORS to allow requests from the frontend
Frontend Configuration The frontend application is built using React and communicates with the backend server using Socket.IO. The main configuration for the Socket.IO client can be found in SocketProvider.js.