A chat app built with React and Pusher's ChatKit
$ git clone git@github.com:dhruv-m-patel/react-chat-app.git
$ npm install
$ cp .env.example .env
- You will need to register for a Pusher account first to be able to run this app.
- Once you create your pusher account and login, you can create a Chatkit instance with your desired name.
- Open
Credentialstab, and do as following:- Copy value for the Instance Locator to
PUSHER_CHATKIT_INSTANCE_LOCATORin the.envfile - Enable test token provider
- Copy test token provider endpoint value into
PUSHER_CHATKIT_AUTH_TOKENon the.envfile
- Copy value for the Instance Locator to
- Open
Consoletab- Create 2 users named
senderandreceiver - Create a room with your desired name and add some messages
- Set
PUSHER_CHATKIT_RECEIVER_USERto bereceiverin.envfile
- Create 2 users named
Now run npm start and visit http://localhost:3000
