The Chat App is a real-time communication application that allows users to engage in private chats seamlessly. Built with Express.js, MongoDB, React.js, and Socket.IO, it provides a secure environment for messaging.
- Real-Time Messaging: Enables instant communication between users using Socket.IO for smooth message delivery.
- Secure Account Management: Users can register and log in securely to access their chat sessions.
- User-Friendly Interface: A clean and intuitive design for a better user experience.
- Frontend: React.js
- Backend: Express.js
- Database: MongoDB
- Real-Time Communication: Socket.IO
- Node.js
- MongoDB
- Socket.IO
git clone https://github.com/TechThrives/ChatAppcd Backendnpm install-
In the root directory of your React App, create a file named
.env.Open the
.envfile and add the following environment variables:-
FRONTEND_URL: URL of the frontend application for CORS configuration. -
PORT: Specifies the port on which the backend server will listen. -
MONGO_DB_URI: Connection string for MongoDB, including credentials and database information. -
JWT_SECRET: Secret key used for signing JSON Web Tokens.
By setting these environment variables, you ensure that your application is configured correctly for different environments and scenarios.
-
npm startcd Ffrontendnpm install-
In the root directory of your React App, create a file named
.env.Open the
.envfile and add the following environment variables:REACT_APP_API_URL: URL of the backend server that the React application will communicate with.
By setting these environment variables, you ensure that your application is configured correctly for different environments and scenarios.
npm startOpen your browser and go to http://localhost:3000 to start using the app.
Registration & Login: Securely register and log in using your credentials.
Start a Chat: Initiate a one-to-one chat with another user.
Send Messages: Communicate in real-time with instant message delivery.
We welcome contributions from the community. To contribute to this project, please follow these guidelines:
- Fork the repository
- Create a new branch for your feature or bug fix
- Make your changes and ensure they are well-tested
- Create a pull request to the main branch of the original repository
- Omkar Kanade @omkarkanade
- Swarup Kanade @swarupkanade