How to create a customer support chat system using Pusher Chatkit
- Create a Chatkit instance
- Once you have created a Chatkit instance, go to the Console tab and create a new user called
Chatkit-dashboard
- Clone this repository.
cd
into this repository (cd live-chat-widget-js
)- Copy the
config.example.js
file toconfig.js
and replace the placeholder keys with your Chatkit application's keys. - Remember to udpate the
PUSHER_CHATKIT_INSTANCE_LOCATOR
variables inassets/admin.js
andassets/chat.js
- Run
npm install
to install dependencies thennode index.js
to run the server - Open http://localhost:3000 and http://localhost:3000/admin on your browser