Skip to content

Latest commit

 

History

History

README.md

CometChat

React Calls Sample App by CometChat

This is a reference application showcasing the integration of CometChat's JavaScript Calls SDK in a React project. It demonstrates how to implement real-time voice and video calling features with ease.

Web Screenshot

Mobile Screenshot 1   Mobile Screenshot 2   Mobile Screenshot 3

Prerequisites

Sign up for a CometChat account to obtain your app credentials: App ID, Region, and Auth Key

  • Node.js 18 or higher

Installation

  1. Clone the repository:

    git clone https://github.com/cometchat/calls-sdk-javascript.git
  2. Change into the sample app's directory:

    cd sample-apps/cometchat-calls-sample-app-react
  3. Run npm install to install the dependencies.

  4. [Optional] Configure CometChat credentials:

    • Open the useAppStore.ts file located at src/store/useAppStore.ts and enter your CometChat appId, region, and authKey:
      appId: 'YOUR_APP_ID',
      authKey: 'YOUR_AUTH_KEY',
      region: 'YOUR_REGION',
    • Alternatively, you can enter your credentials on first launch via the in-app credentials screen.
  5. Run the app:

    npm run dev

Help and Support

For issues running the project or integrating with our UI Kits, consult our documentation or create a support ticket. You can also access real-time support via the CometChat Dashboard.