Skip to content

πŸ’¬ Real-time Chat Application built with MERN stack (MongoDB, Express, React, Node.js) and Vite. Features include user authentication, real-time messaging with Socket.io, and a responsive UI. πŸš€

License

Notifications You must be signed in to change notification settings

mahamadayazmomin/Chat-Application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Chat App (Fullstack MERN + React + Vite)

This is a real-time chat application built using the MERN stack (MongoDB, Express.js, React, Node.js) with Vite for frontend bundling.
The project demonstrates authentication, WebSocket-based real-time messaging, and a clean modern UI.

React + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

Expanding the ESLint configuration

If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the TS template for information on how to integrate TypeScript and typescript-eslint in your project.


πŸš€ Features

  • πŸ”‘ User Authentication (Login & Signup)
  • πŸ’¬ Real-time Messaging (via WebSocket/Socket.io)
  • πŸ“± Responsive UI (works on desktop & mobile)
  • 🌐 REST API for chat and user management
  • ⚑ Fast Refresh with Vite + React
  • πŸ›‘οΈ Secure password handling with bcrypt
  • πŸ“¦ MongoDB database integration

πŸ› οΈ Tech Stack

Frontend

  • React + Vite
  • TailwindCSS (if included)
  • Axios (for API calls)

Backend

  • Node.js + Express.js
  • MongoDB + Mongoose
  • Socket.io (for real-time communication)

Others

  • ESLint + Prettier for linting
  • dotenv for environment configs

πŸ“‚ Project Structure

Chat Application/
β”œβ”€β”€ server/ # Express + MongoDB API
β”‚ β”œβ”€β”€ models/ # Mongoose models
β”‚ β”œβ”€β”€ routes/ # API routes
β”‚ β”œβ”€β”€ controllers/ # Business logic
β”‚ └── server.js # Entry point
β”‚
β”œβ”€β”€ frontend/ # React + Vite frontend
β”‚ β”œβ”€β”€ src/
β”‚ β”‚ β”œβ”€β”€ components/
β”‚ β”‚ β”œβ”€β”€ pages/
β”‚ β”‚ β”œβ”€β”€ context/
β”‚ β”‚ └── App.jsx
β”‚ └── vite.config.js
β”‚
└── README.md

βš™οΈ Installation & Setup

1. Clone the repository

git clone https://github.com/mahamadayazmomin/Chat-Application.git
cd Chat-Application


2. Setup Backend

cd backend
npm install
npm start   # starts backend server (default: http://localhost:5000)

πŸ§ͺ Linting & Formatting

To check linting errors:
npm run lint


πŸ“Έ Screenshot


Demo

You can check out a live demo of this Chat App here.


🀝 Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss your idea.


πŸ“œ License

This project is licensed under the MIT License.

About

πŸ’¬ Real-time Chat Application built with MERN stack (MongoDB, Express, React, Node.js) and Vite. Features include user authentication, real-time messaging with Socket.io, and a responsive UI. πŸš€

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages