ChatHub is a real-time chat application that enables users to join and create public groups for seamless communication. Features include instant messaging, group browsing, and message history loading. Built with Node.js, Express, MongoDB, and React for an interactive chat experience.
- User Authentication (Register/Login)
- Create and Join Public Groups
- Real-time Messaging with Socket.io
- Browse Available Groups
- Load Older Messages on Scroll
-
Clone the repository:
git clone https://github.com/your-username/chathub.git cd chathub
-
Install backend dependencies:
cd backend npm install
-
Install frontend dependencies:
cd ../frontend npm install
-
Create a
.env
file in thebackend
directory and add the following variables:MONGO_URI=<your-mongodb-uri> JWT_SECRET=<your-jwt-secret>
-
Start the backend server:
cd backend npm start
-
Start the frontend server:
cd ../frontend npm start
-
Open your browser and navigate to
http://localhost:3000
.
This project is licensed under the MIT License.