Skip to content

liubao-personal/work-wx

Repository files navigation

构建的服务地址

实现了如下功能:

  • 扫码授权登录
  • 网页授权登录
  • 获取用户信息
  • 自建应用消息推送
  • 群聊相关api
  • 通讯录管理相关api
  • 外部联系人相关api

how to use

copy .env.example in the root directory changes to .env, and add your own configuration

QuickStart

Development

$ npm i
$ npm run dev
$ open http://localhost:7004/

Don't tsc compile at development mode, if you had run tsc then you need to npm run clean before npm run dev.

Deploy

$ npm run tsc
$ npm start

tips:如果使用docker部署一定要删除--daemon
如果不需要docker部署,请在package.json文件启动命令开启后台模式

 "start": "egg-scripts start --port=7004 --daemon --workers=1 --title=egg-server-work-wx"

docker build

docker build -t work-wx . #创建镜像
docker run -itd --name work-wx -p 7004:7004 work-wx #运行一个容器 work-wx也可换成上面创建的镜像id

Npm Scripts

  • Use npm run lint to check code style
  • Use npm test to run unit test
  • se npm run clean to clean compiled js at development mode once

Requirement

  • Node.js 8.x
  • Typescript 2.8+

About

用egg-ts写的企业微信自建应用服务

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages