Skip to content

Commit

Permalink
Updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ketanyekale authored Nov 26, 2024
1 parent 2dba5e2 commit f809476
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions sample-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,19 @@ This is a reference application showcasing the integration of [CometChat's React

1. Clone the repository:
```sh
git clone https://github.com/cometchat/cometchat-sample-app-react.git
git clone https://github.com/cometchat/cometchat-uikit-react.git
```
2. Navigate to the cloned directory:
```sh
cd cometchat-sample-app-react
cd cometchat-uikit-react/sample-app
```
3. Install dependencies:
```sh
npm install
```
4. Enter your CometChat _`App ID`_, _`Region`_, and _`Auth Key`_ in the [src/AppConstants.ts](https://github.com/cometchat/cometchat-sample-app-react/blob/v4/src/AppConstants.ts) file:
https://github.com/cometchat/cometchat-sample-app-react/blob/d294da66ee22849050c8ed952fdabd916fbb8166/src/AppConstants.ts#L1-L7
4. `[Optional]` Enter your CometChat _`App ID`_, _`Region`_, and _`Auth Key`_ in the [sample-app/src/AppConstants.ts](https://github.com/cometchat/cometchat-sample-app-react/blob/v5/sample-app/src/AppConstants.ts) file:https://github.com/cometchat/cometchat-uikit-react/blob/2dba5e2e781db6d2f20c59803ff7f8cef4e7c187/sample-app/src/AppConstants.ts#L1-L5

5. If your app is created before August 12th, 2024 then change the sample data URL to `https://assets.cometchat.io/sampleapp/v1/sampledata.json` in the [src/components/Login/index.tsx](https://github.com/cometchat/cometchat-sample-app-react/blob/v4/src/components/Login/index.tsx) file: https://github.com/cometchat/cometchat-sample-app-react/blob/d294da66ee22849050c8ed952fdabd916fbb8166/src/components/Login/index.tsx#L43-L45

6. Run the project locally to see all CometChat features in action:
5. Run the project locally to see all CometChat features in action:
```
npm start
```
Expand Down

0 comments on commit f809476

Please sign in to comment.