Skip to content

minhtrannguyen-git/Review2025

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation


Chat App 💬

A real-time chat application built using the MERN Stack (MongoDB, Express, React, Node.js) with Socket.IO for live messaging. The app supports user authentication, real-time messaging, and image upload via Cloudinary.


📁 Project Structure


/chat-app
│
├── frontend     # React + Vite frontend
└── backend      # Node.js + Express + MongoDB + Socket.IO backend


🚀 Features

  • Realtime messaging with Socket.IO
  • User authentication using JWT
  • Cloud-based image uploads (Cloudinary)
  • Fully separated client and server setup

🔧 Installation

1. Clone the Repository

git clone https://github.com/minhtrannguyen-git/chat-app.git
cd chat-app

2. Install Dependencies

Backend

cd backend
npm install

Frontend

cd ../frontend
npm install

📦 Running the App in Development

Make sure both the backend and frontend are running in separate terminals.

Start Backend

cd backend
npm run dev

Start Frontend

cd frontend
npm run dev

🛠️ Environment Variables

Backend (/chat-app/backend/.env)

Create a .env file and add the following:

PORT=5001
MONGODB_URI=your_mongodb_connection_string
JWT_SECRET=your_jwt_secret
NODE_ENV=development
FRONT_END_URL=http://localhost:5173

CLOUDINARY_NAME=your_cloudinary_name
CLOUDINARY_API_KEY=your_cloudinary_api_key
CLOUDINARY_API_SECRET=your_cloudinary_api_secret

Frontend (/chat-app/frontend/.env)

Create a .env file and add the following:

VITE_BACKEND_SOCKET_URL=http://localhost:5001

📸 Screenshots

chat-app

🙌 Acknowledgments


About

A basic real-time chat application built using the MERN Stack

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published