egg-alinode

2018-11-10 admin

egg-alinode是什么

什么是egg-alinode,alinode plugin for egg

egg-alinode使用教程帮助文档

egg-alinode

NPM version build status Test coverage David deps Known Vulnerabilities npm download

alinode plugin for egg.

Install

$ npm i egg-alinode

Usage

Enable this plugin

// config/plugin.js
exports.alinode = {
  enable: true,
  package: 'egg-alinode',
};

Add appid and secret from https://node.console.aliyun.com/

// config/config.default.js
exports.alinode = {
  enable: true,
  appid: 'my app id',
  secret: 'my app secret',
};

Start dispatch.js with NODE_LOG_DIR={logdir} and ENABLE_NODE_LOG=yes env:

$ ENABLE_NODE_LOG=yes NODE_LOG_DIR=/mylogdir/ alinode dispatch.js

If you use egg-scripts, the env is already set for you.

$ egg-scripts start

Questions & Suggestions

Please open an issue here.

License

MIT

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-45044.html

文章标题:egg-alinode

回到顶部