design-study / uuchat

A powerful customer success platform !

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

uuchat

A powerful customer success platform ! demo: http://uuchat.io

Requirements

  • Node version 4.3.1 or greater
  • [Optional]MySQL version 5.6 or greater
  • [Optional]Redis, version 2.8.9 or greater

Important Note for Windows Users

Developing on OS X or Ubuntu/Linux is recommended, but if you only have access to a Windows machine you can do one of the following:

Installation

git clone https://github.com/uuchat/uuchat.git uuchat
    download the uuChat code base

cd uuchat
    navigate to the downloaded code base

build and run
    a script for the following commands:

    npm
    node tools/build.js
    node index.js

WARNING: you should install some software which operation system not install by default, eg: Ubuntu 16.10 with sqlite3, g++ ...

Basic uuChat Configuration

    Set base information in src > config.json . if you set nothing, and start uuChat.

  • Customer success page in:    http://127.0.0.1:9688/chat
  • customer demo page in:    http://127.0.0.1:9688/demo
  • Console page is : http://127.0.0.1:9688/console .
    you can add other customer success with uuchat, see chat history, rate , some statistics information etc...

warning: we did not test with IE browser! and we suggest to login /chat or /console with chrome.

Setup your database

uuchat default run with sqlite3, if you don't want to install any database , you also can use uuchat.

If node module of sqlite3 is not install by default, so, you need to npm i sqlite3

Session store

    If redis.host in src > config.json is "", session store default with your database configuration, but that not our suggestion, perhaps, most companies or blogers not need high performance. if you have online customers more than 5, we suggest you use redis for session store.

    Redis config like this:

"redis": {
    "host": "127.0.0.1",
    "port": 6379,
    "ttl": 86400,
    "db": 0
  }
MySQL configuration
"database":{
    "host": "127.0.0.1",
    "dialect": "mysql",
    "username": "root",
    "password": "",
    "database": "uuchat",
    "pool":{
      "max": 5,
      "min": 0,
      "idle": 10000
    }
},

Install to your website

    Copy and paste this code above the last </body> tag on your site. This code is fully asynchronous and won't delay the load time of your page. you can see in dist > customer.html , like this:

<!-- begin uuchat code  -->
<script type="text/javascript">
    ;(function(u, c, h){
        u.UUCHAT = (function(){
            return {
                domain: 'http://uuchat.io', // change your own domain here
                src: h
            };
        })();
        var s = c.createElement('script'),
                r=c.getElementsByTagName('script')[0];
        s.async = 1;
        s.src = u.UUCHAT.domain+h;
        r.parentNode.insertBefore(s,r);

    })(window, document, "/static/js/loader.js", );
</script>
<!-- end uuchat code  -->

License

BSD-3-Clause

About

A powerful customer success platform !

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:JavaScript 90.0%Language:CSS 7.9%Language:HTML 2.1%