Read the full tutorial here:
>> Build a Customer Support Live Chat Widget with React
This demo app shows how to build an Android group chat app with React:
To run the demo first setup CometChat:
- Head to CometChat Pro and create an account
- From the dashboard, create a new app called "React chat widget"
- One created, click Explore
- Go to the API Keys tab and click Create API Key
- Create an API key called "React chat widget key" with Full Access
- Go to the Users tab and click Create User
- Create a user with the name "Agent" and the UID "Agent"
- Download the repository here or by running
git clone https://github.com/cometchat-pro-samples/react-customer-support-live-widget.git
Setup the server:
- In the root directory run
npm install
- Open sever.js and update
appID
,apiKey
to use your own credentials - Set
agentUID
to "Agent" - Run the server by running
node server.js
Setup the client:
- Go to the
client
directory - Run
npm install
there too - Update config.js with your credentials too
- In another terminal run
npm start
to start the client
Questions about running the demo? Open an issue. We're here to help ✌🏻