A modern, real-time chat application that allows users to sign in, join specific chat rooms, and exchange messages instantly. This project demonstrates the power of Firebase Firestore for real-time data synchronization and React for building a dynamic user interface.
- ✅ Google Authentication – Secure sign in using your Google account
- 💬 Real-Time Messaging – Messages appear instantly for all users in the same room
- 📚 Room-Based Chat – Join or create new chat rooms for focused conversations
- 🎨 Intuitive UI – Clean, modern interface designed with Tailwind CSS
- 📱 Responsive Design – Works seamlessly on desktop and mobile devices
| Home Page | Sign-In Page | Room Selection Page | Chat Page |
|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
- Frontend: React.js
- Styling: Tailwind CSS
- State Management: React Hooks (
useState,useRef) - Authentication & Database: Firebase (Authentication & Firestore)
- Bundler: Vite
- Package Manager: npm
- Cookies Management: universal-cookie
- Node.js (LTS version)
- npm (comes with Node.js)
-
Clone the repository
git clone https://github.com/AdwinTS/Real_time_Chat_Application.git cd Real_time_Chat_Application -
Install dependencies
npm install
-
Firebase Configuration
- Create a new project in Firebase Console
- Enable Google Sign-in Provider under Authentication
- Create a Firestore Database and configure security rules
- Copy Firebase SDK config from Project Settings
-
Create a
.env.localfile in the root and add your Firebase credentials:VITE_FIREBASE_API_KEY="YOUR_API_KEY" VITE_FIREBASE_AUTH_DOMAIN="YOUR_AUTH_DOMAIN" VITE_FIREBASE_PROJECT_ID="YOUR_PROJECT_ID" VITE_FIREBASE_STORAGE_BUCKET="YOUR_STORAGE_BUCKET" VITE_FIREBASE_MESSAGING_SENDER_ID="YOUR_MESSAGING_SENDER_ID" VITE_FIREBASE_APP_ID="YOUR_APP_ID"
-
Start development server
npm run dev
App will run at http://localhost:5173
Deploy your app easily using Vercel:
- Push your code to a new GitHub repository
- Go to Vercel Dashboard
- Click New Project → Import Git Repository
- Select your repository and click Deploy
- Add Firebase config as Environment Variables in project settings
- Trigger deployment, and your app will be live!



