文档管理平台

showdoc 接口,说明文档管理平台

www.showdoc.com.cn/help/65610

YApi

YApi:YApi是由去哪网前端团队开源的一款接口管理工具,功能强大,可以轻松的自己部署。而且支持使用docker部署,使用成本很低了。

网址:github.com/YMFE/yapi

体验地址:yapi.smart-xwork.cn/

文档:hellosean1025.github.io/yapi

api需要nodejs(npm)和MongoDB,所以现在会演示如何安装。

下边的步骤在macOS下可用,Linux下同理,windows下没试过。

l nodejs(7.6+)

l mongodb(2.6+)

部署方式一 反正我没有部署成功,请使用部署方式二

npm install -g yapi-cli --registry https://registry.npm.taobao.org
yapi server

在浏览器打开 http://127.0.0.1:9090 访问。

部署方式二

mkdir yapi
cd yapi
git clone https://github.com/YMFE/yapi.git vendors

cp vendors/config_example.json ./config.json
cd vendors
npm install --production --registry https://registry.npm.taobao.org
npm run install-server
node server/app.js

yapi 的使用

访问http://localhost:3000

登录账号admin@admin.com,密码 ymfe.org