164

GitHub - minimalchat/client: Client library for Minimal Chat

 6 years ago
source link: https://github.com/minimalchat/client
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Minimal Chat client script


Minimal Chat is an open source live chat system providing live one on one messaging to a website visitor and an operator.

Minimal Chat is:

  • minimal: simple, lightweight, accessible
  • extensible: modular, pluggable, hookable, composable

We're glad you're interested in contributing, feel free to create an issue or pick one up but first check out our contributing doc and code of conduct. Check out our design documentation as well.

Screenshot

client-screenshot-2

The client script is embedded into a html page just before the </body> tag.

Usage

<!-- Start of Async Minimal Chat Code -->
<script>
!function() {
  o = document.createElement("script"),
  o.type = "text/javascript", o.async = !0, o.crossorigin = "anonymous", o.src = "/mnml-0.2.0.min.js",
  n = document.getElementsByTagName("script")[0], n.parentNode.insertBefore(o, n);
}();
</script>
<!-- End of Async Minimal Chat Code -->

Development

Developing for the client is fairly straight forward. All of the Minimal Chat repositories are run through make. To get the code running:

  1. Clone the repository
  2. make dependencies
  3. make run
  4. Browse to http://localhost:3000

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK