Git Product home page Git Product logo

chatapp-mern's Introduction

MERN Chat Application

This is a real-time chat application built using the MERN (MongoDB, Express, React, Node.js) stack with WebSocket integration.

Description

The MERN Chat Application allows users to engage in real-time conversations with each other. It provides a seamless and interactive chat experience, where users can send and receive messages instantly.

Features

  • Real-time messaging: Messages are delivered instantly to all connected users.
  • User authentication: Users can create accounts, log in, and maintain their chat history.
  • Online status: Users can see the online/offline status of other users.
  • Message notifications: Users receive notifications when new messages are received.

Technologies Used

  • MongoDB: Database for storing user information and chat history.
  • Express: Backend framework for handling API requests and WebSocket connections.
  • React: Frontend library for building the user interface.
  • Node.js: JavaScript runtime environment for running the server-side code.
  • Socket.IO: Library for enabling real-time, bidirectional communication between the server and clients.

Installation

  1. Clone the repository:
git clone LINK_in github


cd mern-chat-app
Install the dependencies for the server:
shell

cd api
npm install
Install the dependencies for the client:
shell

cd ../client
npm install
## Configuration
Create a .env file in the api directory and add the following environment variables:
env

MONGO_URI=your_mongodb_connection_string
SECRET_KEY=your_secret_key
Update the client/src/config.js file with the server URL:
javascript

export const SERVER_URL = 'http://localhost:8800'; 

### Credits
Socket.IO - WebSocket library for real-time communication.
Create React App - Boilerplate for setting up React applications.

chatapp-mern's People

Contributors

bilalck4 avatar

Stargazers

Najlae Abarghache avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.