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

https://github.com/abhishek07788/live-chat-app

One to One Chat app
https://github.com/abhishek07788/live-chat-app

axios expressjs javascript material-ui mongodb moongose nextjs nodejs socket-io socket-io-client typescript

Last synced: 3 months ago
JSON representation

One to One Chat app

Awesome Lists containing this project

README

          

# 💬 Live Chat App

A real-time **chat application** built using **MERN Stack** (MongoDB, Express, React, Node.js) with **Socket.io** for live messaging functionality.

![chat-app](https://github.com/Abhishek07788/live-chat-app/assets/104199818/7eb8ec36-d9dd-4a5b-b04f-72d4dd461f92)

---

## 🚀 Getting Started

### 🛠️ Clone the Repository

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

---

## 🖥️ Start the Frontend

```bash
cd frontend
npm install
npm run dev
```

This will start the frontend on [http://localhost:3000](http://localhost:3000)

---

## 🔌 Start the Backend

```bash
cd backend
npm install
```

### 🔐 Setup Environment Variables

Create a `.env` file in the `backend` folder. Use the structure from `envExample`:

```bash
cp envExample .env
```

Then run the server:

```bash
npm run server
```

This will start the backend on [http://localhost:5000](http://localhost:5000)

---

## 🧰 Tech Stack

- **Frontend**: React, Axios, Socket.io-client
- **Backend**: Node.js, Express, MongoDB, Socket.io
- **Authentication**: JWT
- **Real-time Messaging**: WebSockets (via Socket.io)

---

## 📸 Preview

![chat-app](https://github.com/Abhishek07788/live-chat-app/assets/104199818/7eb8ec36-d9dd-4a5b-b04f-72d4dd461f92)

---

## 👨‍💻 Author

**Abhishek Solanki**
[🌐 Portfolio](https://abhishek07788.github.io/) | [🐱 GitHub](https://github.com/Abhishek07788) | [💼 LinkedIn](http://www.linkedin.com/in/abhishekpratapsolanki)