eh3rrera / chatkit-custom-auth-test-chat

Chat made with React and Chatkit to integrate with a custom authentication server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

  1. Clone this repository.
  2. Create a Chatkit instance if you haven't already.
  3. 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.
  4. 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 in src/ChatScreen.js, the ID of the chat room.
  5. In a terminal window, execute npm install to install the dependencies of the app.
  6. Make sure the authentication server is running and start the chat app with npm start.
  7. Enter the username and password in the first screen of the app to enter the chat.
  8. Optionally, open the app in another browser to sign as another user and start chatting.

Prerequisites

Built With

Acknowledgments

  • Thanks to Pusher for sponsoring this tutorial.

LICENSE

MIT

About

Chat made with React and Chatkit to integrate with a custom authentication server

License:MIT License


Languages

Language:JavaScript 85.0%Language:HTML 13.2%Language:CSS 1.8%