hatcher
v0.2.1
Published
Provides APIs by simple configuration.
Downloads
2
Maintainers
Readme
Hatcher
🐣 Provides APIs by simple configuration.
- Easy: All you need is define the data what you want
- Agile: Just writing simple selector, API services built by one clik
- Functional: Core function provided as Koa2 middleware
Installation
Hatcher requires node v7.6.0 or higher for ES2015 and async function support.
$ npm install --global hatcher
Alternatively, hatcher provides API which can be used directly in your Koa 2.x App.
$ npm install --save hatcher
Usage
const Koa = require('koa')
const hatcher = require('hatcher')
const app = new Koa()
const config = require('./config.js')
app.use(hatcher(config))
app.listen(2333)
Config
TODO
Thanks
- Inspired by gaojiuli/toapi .