dev-resources.site
for different kinds of informations.
A Real time Chat Application with MERN
Published at
12/6/2023
Categories
chat
mern
Author
mohammadtaseenkhan
Author
18 person written this
mohammadtaseenkhan
open
Let’s Chat
A real-time chat application. Another fun side project 🙂
GIFs are attached at the end.
Technologies Used
- React and TailwindCSS for the frontend
- Firebase for authentication
- Node/Express for creating API endpoints
- MongoDB for storing chat room members and their messages
- Socket.io for making the app real-time
Basic Features
- Users can register/login via email and password.
- Profile page where users can update their avatar and display name.
- Generate random avatars using DiceBear API
- Users can create a room to chat with others.
- Users can see online status.
- Search functionality.
- Chatting is real-time.
- Emoji picker is also integrated.
- Dark mode can be enabled.
Getting Started
To run this project locally, follow these steps:
- Clone the repository.
- Install the dependencies:
- Navigate to the
frontend
directory and runnpm install
. - Navigate to the
server
directory and runnpm install
.
- Navigate to the
- Set up Firebase:
- Go to the Firebase Console.
- Create a new project or select an existing one.
- Go to the project settings or service accounts section.
- Click on “Generate new private key” or a similar option.
- Save the downloaded JSON file as
serviceAccountKey.json
. - Place the downloaded
serviceAccountKey.json
file in theserver/config
directory.
- Set up Environment Variables:
- In the
frontend
directory, create a new file named.env
based on the.env.example
file. - Update the values of the environment variables in the
.env
file with your Firebase configuration details. - In the root directory, create a new file named
.env
based on the.env.example
file. - Update the values of the environment variables in the
.env
file according to your preferences. For example, set thePORT
variable to specify the desired port for the server and setMONGO_URI
to your MongoDB connection URI.
- In the
- Run the server:
- Navigate to the
server
directory and runnpm run start
.
- Navigate to the
- Run the client:
- Navigate to the
frontend
directory and runnpm start
.
- Navigate to the
- The application will be accessible at
http://localhost:3000
.
Please make sure to keep the serviceAccountKey.json
file and sensitive information secure and not commit them to version control.
GIFs
GitHub
chat Article's
30 articles in total
FireChat User Guide
read article
How to get a right peoples in your chat group?
read article
How Sportsbet handles 4.5M daily chat messages on its 'Bet With Mates' platform
read article
Diary App, diaries and messaging APIs
read article
MY CHAT WITH ChatGPT
read article
Top Chat APIs to Integrate into Your Apps [2024]
read article
Chat APIs vs. Chat SDKs: A Comprehensive Guide
read article
How AI Chatbots Are Changing Customer Service Efficiency
read article
Build Interactive In-App Polls With SwiftUI
read article
Talk to Strangers: Exploring the World of Online Conversations
read article
Local Intelligence: How to set up a local GPT Chat for secure & private document analysis workflow
read article
Weaving the Web of Conversation: Implementing Chat Functionality in Your Web App
read article
Integra múltiples APIs de IA en una sola plataforma
read article
Mobil Sohbet Siteleri
read article
Amazon IVS Live Stream Playback with Chat Replay using the Sync Time API
read article
Getting Started with Tinode: An Open-Source Messaging Platform
read article
Chat GPT Español Gratis: Transformando la Conversación Digital
read article
A Guide On MVP Development For Chat Apps!
read article
Testfälle für die Chat-Anwendung
read article
Cas de test pour l'application de chat
read article
チャットアプリケーションのテストケース
read article
Testfälle für die Chat-Anwendung
read article
Przypadki testowe dla aplikacji czatu
read article
Test Cases for Chat Application
read article
Implement G-suit Chat Service in .NET Using Google Chat API
read article
Real-time chat application with advanced functionality built using the MERN stack
read article
A Real time Chat Application with MERN
currently reading
A Full Stack Chatting App using Socket.io
read article
An extensible high-performance chatbot framework using Next.js
read article
Video chat with Matrix-engine [standalone] raw yt video
read article
Featured ones: