Skip to content

This is Web-Based Chat-Application developed using the MERN (MongoDB, Express.js, React.js, Node.js) stack. It allows users to register, log in, and chat with other users in real time.

Notifications You must be signed in to change notification settings

arvindk2025/MERN-Stack-Chat-Application

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web-Based Chat Application

This is Web-Based Chat-Application developed using the MERN (MongoDB, Express.js, React.js, Node.js) stack. It allows users to register, log in, and chat with other users in real time.

Live Demo Video Link For How Real-Time Messaging Working using Socket.io Application Hosted Link
https://res.cloudinary.com/arvindkumar/video/upload/v1712558423/Chat-App/Live_Test_Chat-App_y9zvof.mp4 https://chat-application-4krm.onrender.com/

Chat Application


Chat Application

Features

  • User authentication: Users can register and log in securely.
  • Real-time messaging: Users can chat with each other in real-time.
  • Responsive design: The app is responsive and works well on both desktop and mobile devices.
  • Live notifications for new incoming messages.
  • Online user facility indicating which users are currently online.

Technologies Used

  • MongoDB: NoSQL database for storing user data and chat messages.
  • Express.js: Web application framework for Node.js used to build the backend server.
  • React.js: JavaScript library for building user interfaces.
  • Node.js: JavaScript runtime environment for running server-side code.
  • Socket.io: Real-time engine for WebSockets to enable real-time communication between clients and server.
  • Tailwind/CSS: Markup and styling for the front end.

Installation

  1. Clone the repository:

    git clone https://github.com/arvindk2025/Chat-Application
  2. Navigate to the project directory:

    cd Chat-Application
  3. Install dependencies for both frontend and backend

For frontend dependencies Go to the frontend folder Package.json file and see all dependencies for installation

 npm i 
 npm i all_dependencies_name 

For Backend Dependencies Go to the Chat-Application folder & refer directly available package.json file:

 npm i 
 npm i all_dependencies_name 
  1. Set up environment variables:

    • Create a .env file in the Chat Application folder directory.
    • Define the following variables in the .env file:
      PORT = 5000
      MONGODB_URI = <your_mongodb_uri>
      JWT_SECRET = <your_jwt_secret>
      
  2. Run the development server:

    npm run start
  3. Open your browser and navigate to http://localhost:5000 to view the app functionality.


Usage

  1. Register for an account or log in if you already have one.
  2. Once logged in, you'll be redirected to the chat interface.
  3. Start messaging with other users who are online in real-time.

Contributing

Contributions are welcome! Feel free to open issues or pull requests for any improvements or new features you'd like to see added.

About

This is Web-Based Chat-Application developed using the MERN (MongoDB, Express.js, React.js, Node.js) stack. It allows users to register, log in, and chat with other users in real time.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 97.3%
  • CSS 2.0%
  • HTML 0.7%