Giter VIP home page Giter VIP logo

react-chat-elements-app's Introduction

“How to make CometChat work with react-chat-elements” - tutorial app

Read the full tutorial here:

>> How to make CometChat work with react-chat-elements

>> Live Demo Here

This example shows how to build a chat app with React and react-chat-elements:

Screenshots

screenshot

Technology

This demo uses:

  • CometChat Pro 2.0.0
  • React 16.10.2
  • react-chat-elements 10.7.1

Running the demo

To run the demo follow these steps:

  1. Head to CometChat Pro and create an account
  2. From the dashboard, create a new v2 app called "react-chat-elements"
  3. Once created, click Explore
  4. Go to the API Keys tab
  5. Copy the API key called "react-chat-elements" with Full Access
  6. Download the repository here or by running git clone https://github.com/mihailgaberov/react-chat-elements-app.git and open it in your favorite IDE.
  7. Create a .env file in the project directory with your newly-created credentials, such as:
    REACT_APP_ID=your app ID
    REACT_APP_API_KEY=your key
    REACT_APP_REGION=your region (e.g. 'eu' or 'us')
  1. Install the project dependencies via: npm i
  2. Run the app via: npm start
  3. Once the app loads the login screen use one of the test users: superhero1, superhero2 or superhero3 to login

_Note: The best way to test it locally is to open two instances of your browser, one in normal mode and one in incognito mode. When doing multiple tests, make sure your local storage is empty or you will be logged as the user whose details are already recorded there, for example "superhero3". _

Questions about running the demo? Open an issue. We're here to help ✌️

Useful links


react-chat-elements-app's People

Contributors

dependabot[bot] avatar mihailgaberov avatar

Stargazers

 avatar  avatar  avatar

Watchers

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