Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/viko16/hatcher
🐣[WIP] Provides APIs by simple configuration.
https://github.com/viko16/hatcher
api api-server cli crawler koa-middleware nodejs spider
Last synced: about 1 month ago
JSON representation
🐣[WIP] Provides APIs by simple configuration.
- Host: GitHub
- URL: https://github.com/viko16/hatcher
- Owner: viko16
- License: mit
- Archived: true
- Created: 2018-01-21T08:15:41.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-02-19T09:43:38.000Z (over 3 years ago)
- Last Synced: 2024-09-26T16:41:01.067Z (about 1 month ago)
- Topics: api, api-server, cli, crawler, koa-middleware, nodejs, spider
- Language: JavaScript
- Homepage:
- Size: 169 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
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](https://github.com/koajs/koa) middleware## Installation
Hatcher requires **node v7.6.0** or higher for ES2015 and async function support.
```sh
$ npm install --global hatcher
```Alternatively, hatcher provides API which can be used directly in your Koa 2.x App.
```sh
$ npm install --save hatcher
```## Usage
```js
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](https://github.com/gaojiuli/toapi) .
## License
[MIT License](https://opensource.org/licenses/MIT) © [viko16](https://github.com/viko16)