Skip to content

This a chatroom App where you chat with your loved one

Notifications You must be signed in to change notification settings

Gautamkum-ar/chat-room

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

MERN Chatroom Project

Welcome to the MERN Chatroom project! This is a full-stack web application built using the MERN stack (MongoDB, Express.js, React, and Node.js). The project aims to provide a simple and real-time chatroom experience.

Table of Contents

Features

  1. Real-Time Chatting: Engage in real-time conversations with other users.
  2. User Authentication: Secure your chatroom with user authentication.
  3. Message History: View past messages and conversations.
  4. Responsive Design: The chatroom is accessible and usable on various devices.

Installation

Prerequisites

  • Node.js and npm installed on your machine.
  • MongoDB Atlas account for database storage.

Steps

  1. Clone the repository:

    git clone https://github.com/your-username/chat-room.git
  2. Navigate to the project directory:

    cd chatroom
  3. Navigate to the backend directory:

    cd backend
  4. Install server dependencies:

    npm install
  5. Install client dependencies:

    npm install
  6. Navigate to the client directory:

    cd frontend
  7. Install client dependencies:

    npm install
  8. Create a .env file in the root directory and set up the following environment variables:

    MONGO_URI=your_mongodb_uri
    JWT_SECRET=your_jwt_secret

Usage

  1. Open your web browser and go to http://localhost:3000.
  2. Register or log in to access the chatroom.
  3. Enjoy real-time chatting with other users!

Folder Structure

chatroom/
|-- frontedn/             # React frontend
|   |-- public/
|   |-- src/
|   |-- package.json
|   
|-- backend/              # NodeJS backend
|   |-- controllers/
    |-- models/             # MongoDB data models
    |-- handler/             # async handler
    |-- middleware/             # checkauth
    |-- routes/             # Express.js routes
    |-- .env                # Environment variables
    |-- index.js           # Express.js server setup
    |-- package.json        # Server dependencies
    |-- README.md           # Project documentation

Dependencies

  • Server Dependencies:

    • express
    • mongoose
    • socket.io
    • jsonwebtoken
  • Client Dependencies:

    • react
    • react-router-dom
    • socket.io-client

Contributing

Contributions are welcome! Feel free to open issues or pull requests.

License

This project is licensed under the MIT License.

About

This a chatroom App where you chat with your loved one

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published