Skip to content
Switch branches/tags
Go to file
Cannot retrieve contributors at this time

Desktop Chat app with React and Nw.js

Read the full tutorial here:

>> Build a desktop chat app with CometChat, React and Nw.js

>> Live Demo Here

This example shows how to build a desktop chat app with React and Nw.js:


screenshot screenshot screenshot screenshot screenshot


This demo uses:

  • CometChat Pro 1.4.1
  • React 16.8.6
  • Redux 4.0.1
  • redux-thunk 2.3.0
  • Nw.js 0.38.2-sdk

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 app called "desktop-chat-nw"
  3. Once created, click Explore
  4. Go to the API Keys tab and click Create API Key
  5. Create an API key called "desktop-chat-nw" with Full Access
  6. Download the repository here or by running git clone 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
  1. Install the project dependencies via: npm i
  2. Run the app via: npm run launch
  3. Once the app loads the login screen use one of the test users: superhero1, superhero2, superhero3, superhero4 or superhero5 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