Giter Club home page Giter Club logo

robotsample's Introduction

本项目代码示例旨在帮助开发者理解和上手企业微信群机器人相关的开发,基于 ExpressVueCli 构建。

主要功能

本代码示例中包含群机器人相关的以下功能:

  • 发送文本类消息
  • 发送图片类消息
  • 发送 MarkDown 类消息
  • 发送文件类消息

关于群机器人开发更多的信息,可以参考 群机器人开发 文档。参考以下操作,下载示例代码并完成服务部署:

下载示例代码

打开命令行工具,执行以下命令,下载服务端代码。

git clone https://github.com/WecomTeam/RobotSample.git

配置项目信息

打开下载的代码工程,在根目录将 main.config.demo.js 复制一份到 main.config.js 文件中,并根据实际项目情况补充以下配置信息:

**提示:**该文件配置的信息极其重要,切勿泄漏。

{
	// 对应群聊机器人的 Webhook URL
	webhookurl : 'PLEASE_INPUT_YOUR_WEBHOOK_URL'
}

安装项目依赖

在已下载的示例代码项目根目录下,执行以下代码完成依赖安装:

# with npm
npm install 
# with yarn
yarn i

启动服务

执行以下命令,启动后端服务

# with npm
npm run start
# with yarn
yarn  start

访问服务

在浏览器中访问 http://localhost:3000/#/ 检查服务是否启动成功。

robotsample's People

Contributors

buxianshan avatar meterscao 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.