GithubHelp home page GithubHelp logo

chat-clone's Introduction

Group Chat

group-chat is an app that showcases a complex chat use case allowing you to see all PubNub Chat Components for React in action. After running the app, you can send messages as a sample user in a 1:1 and group channel, upload files, and add message reactions to messages. Additionally, this app (also referred to as the "moderated chat app") works as a showcase app on which you can test features offered by our Moderation Dashboard to learn how to moderate and manage users, messages, and channels with PubNub.

Group chat app for React

Prerequisites

This application uses React v18.0.0, ReactDOM v18.0.0, PubNub JavaScript SDK v7.2.0, and PubNub React SDK v3.0.1.

To use the app, you need:

Usage

Read the tutorial to learn how to use the app and better understand the logic behind it.

Follow the steps to run the app locally.

  1. Clone the repository.

    git clone https://github.com/pubnub/react-chat-components.git
  2. Install the dependencies.

    yarn
  3. Copy the samples/.env.example file as samples/.env and paste your Publish and Subscribe Keys there.

  4. Go to the samples/react/group-chat folder.

    cd samples/react/group-chat
  5. Prepopulate sample user and channel object metadata.

    yarn run setup
  6. Run the application.

    yarn run start

Components

The group-chat app showcases these PubNub Chat Components for React:

chat-clone's People

Contributors

khurramsagoo 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.