Skip to content

This group chat app uses React for the front-end, Socket.io for real-time communication, and Express.js for the back-end. Users join chat rooms with a room ID and their name. Note: To chat with others, use the same room ID.

Notifications You must be signed in to change notification settings

Bhupender2/chat-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Chat App | React, Socket.io, Express.js, CORS

chat-demo

Welcome to our Chat App! This project consists of two main components: a client-side application built with React and a server-side application using Socket.io and Express.js.

Features

  • Real-Time Communication: Utilized Socket.IO to enable seamless real-time data transfer between users, allowing instant messaging and updates.
  • Online User Tracking: Display the number of online users within each chat room in real-time, enhancing user engagement and interaction.
  • Join/Leave Notifications: Integrated join and leave notifications to notify users when someone joins or leaves a chat room, facilitating communication.
  • Cross-Platform Compatibility: Implemented CORS (Cross-Origin Resource Sharing) for seamless data sharing and communication across different platforms.

Folder Structure

  • client: Contains the front-end React application.
  • server: Houses the back-end server using Socket.io and Express.js.

Additional Libraries

  • Cors: Used CORS to handle Cross-Origin Resource Sharing and enable secure communication between the client and server.
  • Nodemon: Integrated Nodemon for automatic server restarts during development.
  • React-emoji: Supports rendering emoji characters in chat messages.
  • React-scroll-to-bottom: Automatically scrolls to the bottom of the chat window when new messages are received.

Getting Started

Client

  1. Navigate to the client folder: cd client
  2. Install dependencies: npm install
  3. Start the client application: npm start

Server

  1. Navigate to the server folder: cd server
  2. Install dependencies: npm install
  3. Start the server: npm start

Demo

Visit our website to see the Chat App in action!

Chat App Demo

Contributing

Feel free to contribute or provide feedback by opening an issue or pull request.

Happy chatting! 🎉

About

This group chat app uses React for the front-end, Socket.io for real-time communication, and Express.js for the back-end. Users join chat rooms with a room ID and their name. Note: To chat with others, use the same room ID.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published