Chatkit Test Chat for Custom Authorization Server
Chat build with React and Chatkit to test a custom authorization server. Follow the tutorial here.
Getting Started
- Clone this repository.
- Create a Chatkit instance if you haven't already.
- In the Chatkit dashboard of your instance, in the Instance Inspector section, create one or two users (with the same ID of the users registered in the authorization server) and one chat room.
- Enter your Instance Locator ID at the top of the file
src/App.js
, as well as the URL of the authorization endpoint of your server, and insrc/ChatScreen.js
, the ID of the chat room. - In a terminal window, execute
npm install
to install the dependencies of the app. - Make sure the authentication server is running and start the chat app with
npm start
. - Enter the username and password in the first screen of the app to enter the chat.
- Optionally, open the app in another browser to sign as another user and start chatting.
Prerequisites
- Install the authorization server you can find here
- Chatkit account
Built With
- Pusher Chatkit - Developer-driven chat done simply
Acknowledgments
- Thanks to Pusher for sponsoring this tutorial.
LICENSE
MIT