Skip to content

anmol-tripathi83/CHAT-APP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

38 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Real-Time Chat Application

A full-stack real-time chat app built with React.js, Node.js, Express.js, MongoDB, and Socket.io, featuring authentication, live messaging, and modern UI.

πŸš€ Live Demo: https://chat-app-fndy.onrender.com/

Features

πŸ” Secure Authentication – JWT + HttpOnly cookies + Samesite πŸ’¬ Real-Time Messaging – Powered by Socket.io 🎭 User Presence – Online / Offline indicators 🎨 Themes Support – Switch between dark & light mode and many more πŸ“± Responsive Design – Works on desktop & mobile ⚑ Scalable Backend – REST APIs with Express.js ☁️ Deployed – Frontend & backend hosted on Render

Tech Stack

Frontend: React.js (Vite), Axios ,TailwindCSS / Shadcn UI, Socket.io-client Backend: Node.js, Express.js, MongoDB + Mongoose, Socket.io, JWT Authentication, bcrypt

Deployment:

Render (Frontend + Backend)

πŸ“‚ Project Structure

chat-app/ │── backend/ # Express backend with API + WebSocket server β”‚ β”œβ”€β”€ src/ β”‚ β”‚ β”œβ”€β”€ routes/
β”‚ β”‚ β”œβ”€β”€ controllers/
β”‚ β”‚ β”œβ”€β”€ models/
β”‚ β”‚ β”œβ”€β”€ middleware/
β”‚ β”‚ └── index.js
β”‚ └── package.json
β”‚ │── frontend/ # React frontend β”‚ β”œβ”€β”€ src/
β”‚ β”‚ β”œβ”€β”€ components/
β”‚ β”‚ β”œβ”€β”€ pages/
β”‚ β”‚ β”œβ”€β”€ store/
β”‚ β”‚ └── App.jsx
β”‚ └── package.json
β”‚ └── README.md

πŸš€ Getting Started

1️⃣ Clone the repository git clone https://github.com/your-username/chat-app.git cd chat-app

2️⃣ Backend Setup cd backend npm install Create a .env file in backend/ with: PORT=5001 MONGO_URI=your-mongodb-url JWT_SECRET=your-secret-key Start backend: npm run dev

3️⃣ Frontend Setup cd frontend npm install Create a .env file in frontend/ with: VITE_API_URL=http://localhost:5001/api Start frontend: npm run dev

About

A real-time chat application with instant messaging, user authentication, and responsive UI, built using modern web technologies.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages