An open API service indexing awesome lists of open source software.

https://github.com/syedomer17/chat-app

๐Ÿ’ฌ A fullstack real-time chat application built with NestJS, React, Tailwind CSS, and Socket.IO. ๐Ÿš€ Includes user join/leave notifications, typing indicators, and message history with MongoDB. ๐ŸŽจ Clean and responsive UI powered by shadcn/ui and TypeScript throughout.
https://github.com/syedomer17/chat-app

mongodb nestjs reactjs shadcn-ui socket-io tailwindcss websocket

Last synced: 2 months ago
JSON representation

๐Ÿ’ฌ A fullstack real-time chat application built with NestJS, React, Tailwind CSS, and Socket.IO. ๐Ÿš€ Includes user join/leave notifications, typing indicators, and message history with MongoDB. ๐ŸŽจ Clean and responsive UI powered by shadcn/ui and TypeScript throughout.

Awesome Lists containing this project

README

          

# ๐Ÿ’ฌ Real-Time Chat App (NestJS + React + WebSocket)

A modern fullstack chat application built with:

* ๐Ÿง  **NestJS** (Backend)
* โšก **Socket.IO** for real-time messaging
* ๐ŸŽจ **React.js + Tailwind CSS** for a responsive UI
* ๐Ÿ’… **shadcn/ui** for accessible and beautiful components
* ๐Ÿ“‚ **MongoDB** for message persistence
* ๐Ÿ’ฌ User join/leave announcements, typing indicators, and chat history

---

## ๐Ÿ“ฆ Features

โœ… Real-time messaging
โœ… Join/Leave notifications
โœ… Typing indicators
โœ… MongoDB message storage
โœ… Display active users
โœ… Responsive UI (with Tailwind + shadcn)
โœ… Fully typed with TypeScript

---

## ๐Ÿ“ Project Structure

```
chat-app/
โ”œโ”€โ”€ chat-backend/ โ†’ NestJS backend (Socket.IO + MongoDB)
โ”œโ”€โ”€ chat-frontend/ โ†’ React frontend (Tailwind + WebSocket)
```

---

## โœจ Getting Started

### 1. Clone the repository

```bash
git clone https://github.com/YOUR_USERNAME/chat-app.git
cd chat-app
```

---

## ๐Ÿง  Backend Setup (`chat-backend/`)

### ๐Ÿ“ฆ Install dependencies

```bash
cd chat-backend
npm install
```

### โš™๏ธ Configure

Create a `config` folder and inside it create a `config.ts` file:

```
MONGO_URI=mongodb://localhost:27017/chat-app
```

> Make sure MongoDB is running locally

### โ–ถ๏ธ Run the backend

```bash
npm run start:dev
```

Backend will run on: [http://localhost:3000](http://localhost:3000)

---

## ๐ŸŽจ Frontend Setup (`chat-frontend/`)

---

## ๐Ÿงช Technologies Used

### Backend:

* NestJS
* Socket.IO (WebSocket Gateway)
* Mongoose + MongoDB
* TypeScript

### Frontend:

* React.js (Vite)
* Tailwind CSS
* shadcn/ui
* WebSockets

---

## ๐Ÿค Contributing

Feel free to fork the project and submit a PR with improvements!

---