Installing Chat

To start using Chat, you need to:

  1. Include the necessary JS and CSS scripts into an HTML file.
  2. Call the object constructor.

Included Files

You need to include 4 files on a page:

  <!-- Webix Library -->
  <script src="codebase/webix.js" type="text/javascript"></script>
  <link rel="stylesheet" href="codebase/webix.css" type="text/css">
  <!-- Chat -->
  <script type="text/javascript" src="codebase/chat.js"></script>
  <link rel="stylesheet" href="codebase/chat.css" type="text/css">
    <!-- Chat constructor -->
</script> </body> </html>

See the next chapter to learn more ways of creating Chat on a page.

Starting a Backend Server

We provide Golang backend code for Chat. To start a server follow the instructions given in the repository README.

Running Package Samples Locally

To run package samples on a local machine you should navigate to the Chat root folder, install the necessary dependencies and start a development server as:

// navigate to the root folder
cd chat
// install dependencies
yarn install //or npm install
// start dev server
yarn server //or npm run server
Back to top