The Chatwave web app is a real-time chat application built using the MERN (MongoDB, Express.js, React.js, Node.js) stack. It allows users to communicate with each other in real-time, creating a seamless and interactive chat experience.
- ✅ Real-time messaging: Users can send and receive messages instantly.
- ✅ User authentication: Secure user authentication using JWT (JSON Web Tokens).
- ❌ MongoDB database: Persistent storage for chat messages and user data.
- ❌ Responsive design: A user-friendly interface that works seamlessly on various devices.
- MongoDB: Database to store user information and chat messages.
- Express.js: Backend framework for handling server-side logic.
- React.js: Frontend library for building the user interface.
- Node.js: Runtime environment for server-side JavaScript.
- Socket.io: Real-time bidirectional event-based communication.
-
Clone the repository:
git clone https://github.com/JavidSumra/ChatWave
-
Clone the Backend repository:
git clone https://github.com/JavidSumra/ChatWave_Backend
-
Navigate to the project directory:
cd ChatWave
-
Install dependencies for both the client and server:
cd ChatWave && npm install cd ../ChatWave_Backend && npm install
-
Create a
.env
file in theChatWave_Backend
directory with the following content:SECRET_TOKEN = JWT_SECRET_TOKEN email = YOUR_EMAIL Password = YOUR_APP_PASSWORD_FOR_EMAIL MONGO_URL = YOUR_MONGODB_CONNECTION_STRING
-
Create a
.env
file in theChatWave
directory with the following content:VITE_API_ENDPOINT = http://localhost:3007
-
Start the
server
andclient
:# In the ChatWave_Backend directory npm run start # In the ChatWave directory npm run dev
-
Open your browser and visit
http://localhost:3007
to access the ChatWave web app.