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 Inspector tab and create a new user called
chatkit-dashboard
- Clone or download the repository.
cd
into the repository (cd customer-support-chat-example
)- Copy the
config.example.js
file toconfig.js
and replace the placeholder keys with your Chatkit application's keys. - Remember to udpate the
PUSHER_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