Logo

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
Categories
2 categories in total
chat
open
mern
open
Author
18 person written this
mohammadtaseenkhan
open
A Real time Chat Application with MERN

Let’s Chat

A Real time Chat Application with MERN

A real-time chat application. Another fun side project 🙂

A Real time Chat Application with MERN

A Real time Chat Application with MERN

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:

  1. Clone the repository.
  2. Install the dependencies:
    • Navigate to the frontend directory and run npm install.
    • Navigate to the server directory and run npm install.
  3. 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 the server/config directory.
  4. 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 the PORT variable to specify the desired port for the server and set MONGO_URI to your MongoDB connection URI.
  5. Run the server:
    • Navigate to the server directory and run npm run start.
  6. Run the client:
    • Navigate to the frontend directory and run npm start.
  7. 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

A Real time Chat Application with MERN

A Real time Chat Application with MERN

A Real time Chat Application with MERN

GitHub

View Github

chat Article's
30 articles in total
Favicon
FireChat User Guide
Favicon
How to get a right peoples in your chat group?
Favicon
How Sportsbet handles 4.5M daily chat messages on its 'Bet With Mates' platform
Favicon
Diary App, diaries and messaging APIs
Favicon
MY CHAT WITH ChatGPT
Favicon
Top Chat APIs to Integrate into Your Apps [2024]
Favicon
Chat APIs vs. Chat SDKs: A Comprehensive Guide
Favicon
How AI Chatbots Are Changing Customer Service Efficiency
Favicon
Build Interactive In-App Polls With SwiftUI
Favicon
Talk to Strangers: Exploring the World of Online Conversations
Favicon
Local Intelligence: How to set up a local GPT Chat for secure & private document analysis workflow
Favicon
Weaving the Web of Conversation: Implementing Chat Functionality in Your Web App
Favicon
Integra múltiples APIs de IA en una sola plataforma
Favicon
Mobil Sohbet Siteleri
Favicon
Amazon IVS Live Stream Playback with Chat Replay using the Sync Time API
Favicon
Getting Started with Tinode: An Open-Source Messaging Platform
Favicon
Chat GPT Español Gratis: Transformando la Conversación Digital
Favicon
A Guide On MVP Development For Chat Apps!
Favicon
Testfälle für die Chat-Anwendung
Favicon
Cas de test pour l'application de chat
Favicon
チャットアプリケーションのテストケース
Favicon
Testfälle für die Chat-Anwendung
Favicon
Przypadki testowe dla aplikacji czatu
Favicon
Test Cases for Chat Application
Favicon
Implement G-suit Chat Service in .NET Using Google Chat API
Favicon
Real-time chat application with advanced functionality built using the MERN stack
Favicon
A Real time Chat Application with MERN
Favicon
A Full Stack Chatting App using Socket.io
Favicon
An extensible high-performance chatbot framework using Next.js
Favicon
Video chat with Matrix-engine [standalone] raw yt video

Featured ones: