【文件属性】:
文件名称:nothub-stream:流nohub
文件大小:32KB
文件格式:ZIP
更新时间:2021-05-26 15:49:25
JavaScript
NotHub流
NotHub流是一个服务器
设置
$ git clone git://github.com/tricknotes/nothub-stream.git ./nothub-stream
$ cd nothub-stream
$ yarn install
编辑配置:
$ cp ./config/stream.config.example ./config/stream.config
将您的设置写入./config/stream.config 。
并运行:
$ yarn start
测试
$ yarn test
授权
您可以使用github授权,以使用高级速率限制。
使用GITHUB_ACCESS_TOKEN作为环境变量运行:
$ GITHUB_ACCESS_TOKEN= " Your API Token " yarn start
在github:enterpris
【文件预览】:
nothub-stream-master
----.gitignore(29B)
----package.json(794B)
----.prettierrc.yaml(87B)
----.eslintrc.yaml(133B)
----.github()
--------workflows()
----README.md(3KB)
----config()
--------stream.json.example(21B)
----lib()
--------service.js(1KB)
--------crawler.js(2KB)
--------index.js(205B)
--------stream.js(664B)
--------json_matcher.js(3KB)
--------sender.js(1KB)
----start.js(755B)
----test()
--------integration()
--------stream.test.js(2KB)
--------sender.test.js(2KB)
--------json_matcher.test.js(7KB)
--------service.test.js(2KB)
--------crawler.test.js(2KB)
----yarn.lock(43KB)