DevVani ChatApp is a full-stack web application built using the MERN stack (MongoDB, Express.js, React.js, Node.js) to facilitate real-time messaging between users. This repository contains both the frontend and backend code for the application.
- User Authentication: Users can sign up, log in, and log out securely.
- Real-time Messaging: Users can send and receive messages instantly in real-time.
- User Status: Online/offline status indicators for users.
- User Profiles: View and edit user profiles.
- Responsive Design: The frontend is designed to be responsive and accessible on various devices.
-
Frontend:
- React.js
- Redux (for state management)
- Axios (for HTTP requests)
- Socket.IO (for real-time communication)
- Material-UI (for UI components)
-
Backend:
- Node.js
- Express.js
- MongoDB (with Mongoose ORM)
- Socket.IO (for real-time communication)
- JWT (JSON Web Tokens) for authentication
-
Clone the repository:
git clone https://github.com/VasudevJaiswal/DevVani-ChatApp # Setting Up ChatApp
-
Navigate to the backend directory:
cd DevVani-ChatApp/backend
-
Install dependencies:
npm install
-
Create a
.env
file in the backend directory and add the following environment variables:PORT=5000 MONGODB_URI=your_mongodb_connection_string JWT_SECRET=your_jwt_secret
-
Start the server:
npm start
-
Navigate to the frontend directory:
cd DevVani-ChatApp/frontend
-
Install dependencies:
npm install
-
Create a
.env
file in the frontend directory and add the following environment variables:REACT_APP_BACKEND_URL=http://localhost:5000
-
Start the development server:
npm start
Now you can access the ChatApp frontend by opening your browser and going to http://localhost:3000.
Make sure the backend server is running as well to enable communication between the frontend and backend.