Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eggjs/egg-alinode
alinode plugin for egg
https://github.com/eggjs/egg-alinode
alinode apm egg-plugin
Last synced: about 1 month ago
JSON representation
alinode plugin for egg
- Host: GitHub
- URL: https://github.com/eggjs/egg-alinode
- Owner: eggjs
- License: mit
- Created: 2016-07-15T15:56:34.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-03-13T00:41:57.000Z (almost 5 years ago)
- Last Synced: 2024-04-14T02:21:54.004Z (8 months ago)
- Topics: alinode, apm, egg-plugin
- Language: JavaScript
- Homepage: https://node.console.aliyun.com/
- Size: 29.3 KB
- Stars: 53
- Watchers: 9
- Forks: 11
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: History.md
- License: LICENSE
Awesome Lists containing this project
- awesome-egg - egg-alinode - alinode plugin for egg https://node.console.aliyun.com ![](https://img.shields.io/github/stars/eggjs/egg-alinode.svg?style=social&label=Star) ![](https://img.shields.io/npm/dm/egg-alinode.svg?style=flat-square) (仓库 / 插件)
- awesome-egg - egg-alinode - alinode plugin for egg https://node.console.aliyun.com (Plugins)
README
# egg-alinode
[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Test coverage][codecov-image]][codecov-url]
[![David deps][david-image]][david-url]
[![Known Vulnerabilities][snyk-image]][snyk-url]
[![npm download][download-image]][download-url][npm-image]: https://img.shields.io/npm/v/egg-alinode.svg?style=flat-square
[npm-url]: https://npmjs.org/package/egg-alinode
[travis-image]: https://img.shields.io/travis/eggjs/egg-alinode.svg?style=flat-square
[travis-url]: https://travis-ci.org/eggjs/egg-alinode
[codecov-image]: https://codecov.io/github/eggjs/egg-alinode/coverage.svg?branch=master
[codecov-url]: https://codecov.io/github/eggjs/egg-alinode?branch=master
[david-image]: https://img.shields.io/david/eggjs/egg-alinode.svg?style=flat-square
[david-url]: https://david-dm.org/eggjs/egg-alinode
[snyk-image]: https://snyk.io/test/npm/egg-alinode/badge.svg?style=flat-square
[snyk-url]: https://snyk.io/test/npm/egg-alinode
[download-image]: https://img.shields.io/npm/dm/egg-alinode.svg?style=flat-square
[download-url]: https://npmjs.org/package/egg-alinodealinode plugin for egg.
## Install
```bash
$ npm i egg-alinode
```## Usage
Enable this plugin
```js
// config/plugin.js
exports.alinode = {
enable: true,
package: 'egg-alinode',
};
```Add `appid` and `secret` from https://node.console.aliyun.com/
```js
// 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:
```bash
$ ENABLE_NODE_LOG=yes NODE_LOG_DIR=/mylogdir/ alinode dispatch.js
```> If you use `egg-scripts`, the env is already set for you.
```bash
$ egg-scripts start
```## Questions & Suggestions
Please open an issue [here](https://github.com/eggjs/egg/issues).
## License
[MIT](LICENSE)