Giter Site home page Giter Site logo

dhruv35m / chat-app Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 5.07 MB

A real-time chat application built with the MERN stack (MongoDB, Express, React, Node.js), featuring user authentication, private and group messaging.

JavaScript 96.09% HTML 0.81% CSS 2.93% Dockerfile 0.17%
chatapp express javascipt mern-chatapp node-chat-app nodejs react react-chat-app

chat-app's Introduction

MERN Chat App

A real-time chat application built with the MERN stack (MongoDB, Express, React, Node.js), featuring user authentication, private and group messaging.

Features

  • Real-Time Messaging: Instant communication using socket.io.
  • User Authentication: Secure login and registration with JWT.
  • Private and Group Chats: Support for both private and group conversations.
  • Responsive Design: Works seamlessly on all devices.
  • User Profiles: profiles with avatars.
  • Message Notifications: Real-time notifications for new messages.

Tech Stack

  • Frontend: React.js, Zustand (Global state management), TailwindCSS + Daisy UI
  • Backend: Node.js, Express.js, Authorization with JWT
  • Database: MongoDB (using MongoDB Atlas)
  • Real-Time Communication: Socket.io

Screenshots

Login Image Description

Signup Image Description

Home Image Description

Chat Image Description

Installation

Prerequisites

  • Node.js and npm installed
  • MongoDB Atlas account and cluster set up

Steps

  1. Clone the repository:

    git clone https://github.com/yourusername/mern-chat-app.git
    cd mern-chat-app
  2. Install dependencies::

    npm install
    cd frontend
    npm install
  3. Set up environment variables:

    PORT=5000
    MONGO_DB_URI=your_mongodb_connection_string
    JWT_SECRET=your_jwt_secret
    SOCKET_PORT=your_socket_port
    NODE_ENV=development
  4. Run the application::

    npm run server
    cd frontend
    npm run dev

Contributing

We welcome contributions to improve the MERN Chat App. To contribute, please fork the repository and create a pull request with your changes. Ensure your code follows the project's coding standards and is well-documented.

License

This project is licensed under the MIT License. See the LICENSE file for details.

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.