Git Product home page Git Product logo

uuchat's Introduction

uuchat

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

Requirements

  • Node version 6.11.5 or greater
  • [Optional]MySQL version 5.0 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 your own information in src > config.json . something like 'name' , 'ip address', 'port', db configuration etc. if you set nothing, and start uuChat.

  • you can take customer success page in    http://127.0.0.1:9688/chat
    first, you need register with your email , and than login into uuchat.
  • customer demo page in    http://127.0.0.1:9688/demo .
    click button on the bottom of page , chat with customer success.
  • our 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

uuchat's People

Contributors

hoorace avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.