5 Minutes Install UUChat

UUChat is a professional open source customer service system. It is a simple exercise that gets you started when you need chat with your customers. Let's get start.

You'll see 3 setup in 5 minutes:

  1. Download UUChat
  2. Build and Configuation
  3. Install to your website or app

Requirements:

  • Node Version 6.0.0 or greater
  • [Optional]MySQL version 5.0 or greater

Step 1. Download UUChat

Our project is open source on github. so you can download with git:

git clone https://github.com/uuchat/uuchat.git

If you has no github account, Please go to the Release page first, and get the lastest release.

tar -xvf uuchat-VERSION-Release.tar.gz

Step 2. Build and configuation

Build UUChat for the following commands:

cd uuchat
npm install
node tools/build.js

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

UUChat all configuration is in src > config.json. if you don't want set any thing , run command npm i sqlite3, and you can use UUChat with ip and port by default. then start UUChat like 🚀 :

node index.js

there are 3 main pages:

Step 3. Install to your website or App

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  -->

APP

Set your app webview url like : http://127.0.0.1:9688/webview