Giter Club home page Giter Club logo

chat-room's Introduction

Chat Application with React and RSuite

Features:

  • Sign in with Facebook and Google
  • Link your social media accounts and create one account
  • users can upload/edit images to their profile
  • cache user avatar images for 3 days
  • user can edit their nickname through the use of reusable and editable input component
  • users nickname updates concurrently inside firebase storage
  • Create a new chat room
  • Like messages
  • user online / offline status
  • see messages
  • send a new message
  • send files to chat rooms
  • send audio files and play audio files
  • see room information
  • role-based permissions, admin can edit room information
  • broadcast message to send notification to other members
  • notifications for subscribing or unsubscribing from notifications
  • only the admin user of the room can edit the room information and the admin can grant permission to another user
  • chats are grouped by dates
  • pagination and scroll to bottom of the page when the user types a new message

Technologies

  • REACT SUITE UI LIBRARY and SASS
  • React Context API with useContext hook to get the username for signin and registration
  • Firebase Realtime database to store profiles, rooms, status of the user(online/offline) and messages
  • Firebase Authentication with Facebook and Google
  • Firebase Storage to store profile avatar image, chat images and audio
  • useRef hook to access Canvas element for avatar image
  • Firebase Cloud Functions to add realtime data and send notifications to the user
  • FCM cloud functions Send messages to multiple devices
  • Service Worker to get a background notification, even if the app is offline, user can get notifications.
  • use-context-selector hook
  • Build presence in CLoud Firestore
  • useHover hook
  • User avatar made with React avatar editor
  • react-mic for recording audio from a user's microphone

Installation

# application
yarn install

yarn start

# runs on http://localhost:3000/

# backend
cd functions

npm install

npm start

# runs on http://localhost:4000/

firebase

The App is developed using Node v10.

Run frontend locally

  1. Inside src/misc/firebase.js replace config with your firebase project config.
  2. Get FCM vapid key for real-time notificaitons from Firebase dashboard > Cog icon > Project Settings > Cloud Messaging > Web push certificates > Key pair and put it as fcmVapidKey inside src/misc/firebase.js.
  3. Run npm run start and develop

Run functions locally

  1. Download a service account from Firebase dashboard > Cog icon > Project Settings > Service accounts > Generate new private key.
  2. Put the file as functions/service-account.json
  3. Run npm run start from functions

Deployment

  1. Install firebase-cli by running npm install -g firebase-tools
  2. Run firebase deploy

chat-room's People

Contributors

hulyak avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.