Chat-App-Project Tailwind Templates

Chat App Project

Disqus is a real-time one-on-one messaging app built with the MERN stack, Tailwind CSS, and DaisyUI, featuring secure authentication and WebSocket-based instant messaging

šŸš€ Chat App Project

šŸ“Œ Overview

šŸ”¹ The Chat App Project is a powerful, real-time messaging application designed for seamless and efficient communication.

šŸ”¹ This repository contains the complete source code for a feature-rich chat application, covering both frontend and backend implementations, user authentication, and real-time messaging using WebSockets.

šŸ’” Perfect for: Developers looking to explore chat application development, real-time communication, and WebSocket integration.


✨ Features

šŸ“Œ Core Functionalities:

āœ… Secure User Authentication (Signup/Login) šŸ”’
āœ… Real-Time Messaging using WebSockets šŸ’¬
āœ… Customizable User Profiles šŸ·ļø
āœ… Typing Indicators & Read Receipts šŸ“œ
āœ… Media Sharing (Images, Videos, Files) šŸ“Ž
āœ… Dark Mode for better UX šŸŒ™
āœ… Responsive UI across all devices šŸ“±


šŸ› ļø Tech Stack

šŸ“Œ Frontend:

  • āš›ļø React.js - Modular & Scalable UI Components
  • šŸŽØ Tailwind CSS - Modern Styling Framework
  • šŸ“” Socket.io-client - WebSocket Communication

šŸ“Œ Backend:

  • 🌐 Node.js - Server-side JavaScript Runtime
  • šŸš€ Express.js - Lightweight Backend Framework
  • šŸ—„ļø MongoDB + Mongoose - NoSQL Database for Storage
  • šŸ”Œ Socket.io - Real-Time Communication
  • šŸ”‘ JWT Authentication - Secure Token-based Auth

šŸ—ļø Database Structure

šŸ“‚ Database: ChatAppDB
ā”œā”€ā”€ šŸ  Users Collection
ā”œā”€ā”€ šŸ’¬ Messages Collection

šŸ“Œ Users Collection:

{
  "_id": "ObjectId",
  "username": "string",
  "email": "string",
  "password": "hashed_string",
  "profilePicture": "string",
  "status": "string",
  "createdAt": "timestamp",
  "updatedAt": "timestamp"
}

šŸ“Œ Messages Collection:

{
  "_id": "ObjectId",
  "senderId": "ObjectId",
  "receiverId": "ObjectId",
  "message": "string",
  "messageType": "string", 
  "seen": "boolean",
  "createdAt": "timestamp"
}

šŸš€ Installation Guide

šŸ“Œ Prerequisites:

āœ”ļø Install Node.js (Latest LTS recommended)
āœ”ļø Install MongoDB and ensure it is running

šŸ“Œ Setup & Run:

# Clone the repository:
git clone https://github.com/saikumarpeeka/Chat-App-Project.git

# Navigate into the project directory:
cd Chat-App-Project

# Install dependencies:
npm install

# Set up environment variables (create .env file)

# Start the backend server:
npm run server

# Start the frontend application:
npm start

# Open in Browser:
http://localhost:3000/

šŸŒ API Endpoints

šŸ“Œ Authentication | Endpoint | Method | Description | |----------|--------|-------------| | /api/auth/register | POST | Register a new user. | | /api/auth/login | POST | Authenticate and receive a JWT token. | | /api/auth/logout | POST | Logout user. |

šŸ“Œ Chat & Messaging | Endpoint | Method | Description | |----------|--------|-------------| | /api/chats | GET | Fetch user chats. | | /api/chats/send | POST | Send a message. | | /api/chats/:id | GET | Retrieve a specific chat. |

šŸ“Œ User Management | Endpoint | Method | Description | |----------|--------|-------------| | /api/users/:id | GET | Fetch user profile details. | | /api/users/update | PUT | Update user information. |


šŸŽÆ Usage

1ļøāƒ£ Register/Login to your account.
2ļøāƒ£ Start conversations with users or create group chats.
3ļøāƒ£ Exchange messages, media files, and experience real-time conversations.
4ļøāƒ£ Customize your profile and manage settings.


šŸ¤ Contribution Guidelines

āœ… Fork this repository.
āœ… Create a new branch (feature-newFeature or bugfix-issue).
āœ… Commit your changes with clear messages.
āœ… Push your changes to your forked repo.
āœ… Create a pull request (PR) describing your modifications.

We ā¤ļø contributions! šŸš€



šŸ“œ License

This project is open-source and available for modification and use under the specified license.

This version is structured, professional, and formatted for clarity and readability. Let me know if you need any modifications!


šŸ“ž Contact

For any issues, suggestions, or feature requests, feel free to raise an issue on the repository or reach out to saikumarr.peeka@gmail.com.


Note
This Content is made by OpenAI

Top categories

Loading Svelte Themes