GithubHelp home page GithubHelp logo

kefu-webim's Introduction

环信移动客服网页插件

集成网页插件

请参考集成文档

本地运行

  1. 安装nodejs 具体请参考 nodejs.org

  2. 在终端执行以下命令

    • 修改 npm 的 source(默认 source 安装速度可能不理想)

      npm config set registry https://registry.npm.taobao.org

    • 下载代码

      git clone https://github.com/easemob/kefu-webim.git

    • 进入代码目录

      cd kefu-webim

    • 进入server子目录

      cd server

    • 安装webserver依赖(此命令在kefu-webim/server目录下执行,下同)

      npm install

    • 运行webserver,让代码在本地跑起来

      npm run server

    • 此时可以用浏览器打开 http://localhost:8008/webim/demo.html

定制开发(目前标准版已支持所有功能,绝大多数情形无需定制开发

  • 在上述步骤的基础上还要执行下面的命令,推荐使用OSX 或 Linux,Window下安装依赖可能会有问题
    • 安装开发依赖(此命令在kefu-webim目录下执行,下同)

      npm install

    • 构建代码 (用于生产环境)

      npm run build

    • 构建并启动watch (用于开发)

      npm run dev

其他命令可以查看帮助

cd kefu-webim
node server/app -h
>>>  Usage: app [options]
Options:
-h, --help         output usage information
-V, --version      output the version number
-p, --port <n>     listen port, default 8080
-t, --target [domain]    backend domain name, default: sandbox.kefu.easemob.com

kefu-webim's People

Contributors

pppkiller avatar lth5 avatar index-swf avatar stliu avatar dcw1123 avatar

Watchers

James Cloos avatar 杨森林 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.