Sign inSign up

36node/echo-logger

By 36node

•Updated almost 6 years ago

echo logger to console via restful api

Image
0

1.5K

36node/echo-logger repository overview

⁠@36node/echo-logger

用于给消息队列提供测试数据

⁠Quick Start

  1. 安装 yarn
  2. 启动 yarn start
  3. 通过如下脚本向 server 发送 5 条日志 bin/post.sh 5

⁠开发脚本

  1. 安装:yarn
  2. 启动: yarn start
  3. 打包: yarn build
  4. 单元测试: yarn test
  5. 集成测试: yarn test:int

⁠测试说明

测试文件通过 fastman 库 对接 Postman

  • 全局安装 fastman yarn global add @36node/fastman
  • 通过链接⁠获取 Postman 的 key,并设置 fastman config -a <your-postman-api-key>
  • 使用fastman ls获取 Postman 的全部 collections
  • 使用fastman import ./test/xxxx/collection.json 将 collection.json 文件导入 Postman
  • 使用fastman export "Petstore Service" ./test/xxxx/collection.json将 Postman 中的 collection 导入当前工程的测试中

Tag summary

Content type

Image

Digest

Size

41 MB

Last updated

almost 6 years ago

docker pull 36node/echo-logger