CometChat React JS Demo app (built using CometChat Pro) is a fully functional messaging app capable of one-on-one (private) and group messaging along with recent conversations. The app enables users to send text , multimedia messages like audio, video, images, documents and custom messages (eg : location).
Clone or checkout the project using git or svn using the mentioned web URL
git clone <URL>
If you don't have node install, Please download appropriate version from official website: Nodejs.org
Once node and npm is installed successfully. You can verify from running following command :
node -v
npm -v
Now you are ready to sync application dependencies. Please follow the following steps:
npm install
- Create a new app - select version as v2 and region as Europe or USA.
-
Head over to the API Keys section and click on the Create API Key button
-
Enter a name and select the scope as Auth Only
-
Now note the API Key and App ID
-
Replace
APP_ID
,API_KEY
andAPP_REGION
in src/constants.js with your APP ID, API KEY and APP Region respectively.
Note : APP Region values to "us" or "eu".
Signup for CometChat and then:
- Create a new app - select version as v1
-
Head over to the API Keys section and click on the Create API Key button
-
Enter a name and select the scope as Auth Only
-
Now note the API Key and App ID
-
Replace
APP_ID
,API_KEY
in src/constants.js with your APP ID, and API KEY respectively.
And your are done! You can now run your app by running the following command.
npm start
Feel free to make a suggestion by creating a pull request.