Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/eggjs/egg-datahub

Macaca DataHub plugin for Egg.js
https://github.com/eggjs/egg-datahub

datahub eggjs macaca mock

Last synced: about 2 months ago
JSON representation

Macaca DataHub plugin for Egg.js

Awesome Lists containing this project

README

        

# egg-datahub

---

[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]
[![node version][node-image]][node-url]
[![egg version][egg-image]][egg-url]
[![npm download][download-image]][download-url]

[npm-image]: https://img.shields.io/npm/v/egg-datahub.svg
[npm-url]: https://npmjs.org/package/egg-datahub
[travis-image]: https://img.shields.io/travis/eggjs/egg-datahub.svg
[travis-url]: https://travis-ci.org/eggjs/egg-datahub
[coveralls-image]: https://img.shields.io/codecov/c/github/eggjs/egg-datahub.svg
[coveralls-url]: https://codecov.io/gh/eggjs/egg-datahub
[node-image]: https://img.shields.io/badge/node.js-%3E=_8-green.svg
[node-url]: http://nodejs.org/download/
[egg-image]: https://img.shields.io/badge/egg-%3E=_2-green.svg
[egg-url]: https://github.com/eggjs/egg
[download-image]: https://img.shields.io/npm/dm/egg-datahub.svg
[download-url]: https://npmjs.org/package/egg-datahub

> Macaca DataHub plugin for Egg.js

## Installation

```
$ npm i egg-datahub --save-dev
```

## Configuration

config/plugin.js

```javascript
exports.datahub = {
enable: true,
package: 'egg-datahub'
};
```

config.unittest.js (default config)

```javascript
exports.datahub = {
port: 9200,
hostname: 'localhost'
};
```

## Example

[hackernews-datahub](//github.com/eggjs/examples/tree/master/hackernews-datahub)

## Contributors

|[
zivyangll](https://github.com/zivyangll)
|[
xudafeng](https://github.com/xudafeng)
|[
snapre](https://github.com/snapre)
|[
zhangyuheng](https://github.com/zhangyuheng)
|[
fengmk2](https://github.com/fengmk2)
|
| :---: | :---: | :---: | :---: | :---: |

This project follows the git-contributor [spec](https://github.com/xudafeng/git-contributor), auto updated at `Sun Mar 27 2022 22:44:45 GMT+0800`.

## License

The MIT License (MIT)