React Technical Overview - Glia-mh/Glia-Web-Client GitHub Wiki

React Technical Overview

React comprises the View technology used to build all the client components for Glia.

The Web Client interacts with both the Django Rest Database, as well as Pubnub for its controls.

Overall flow of the web client

:
  1. Opens up to login screen, where the user is prompted for a counselor ID. Counselor ID's consist of UUID4 ids. As an example: ab12c39d-ab12-bc39-2393-ab2319b010g. These are generated automatically by the rest framework when a counselor is added (This is done through a post request, and must be done directly. This is not a feature supported by the client, and likely will not be done so that Glia can review counselors they allow).

  2. For authentication, the client makes a get request, to check whether a counselor with that uuid4 exists. If it does, it will further pull data from the /conversations endpoint to get each conversation (the model docs can be found in the database wiki)

  3. For the actual chat functionality, it is done through pubnub, and its publish/subscribe model. More details can be found here: https://www.pubnub.com/docs/react-native-javascript/pubnub-javascript-sdk

⚠️ **GitHub.com Fallback** ⚠️