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.
cdinto this repository (cd live-chat-widget-js)- Copy the
config.example.jsfile toconfig.jsand replace the placeholder keys with your Chatkit application's keys. - Remember to udpate the
PUSHER_CHATKIT_INSTANCE_LOCATORvariables inassets/admin.jsandassets/chat.js - Run
npm installto install dependencies thennode index.jsto run the server - Open http://localhost:3000 and http://localhost:3000/admin on your browser