接口管理平台Yapi

时间:2019-08-02 11:59:47   收藏:0   阅读:107

1、介绍

YApi 是由去哪儿移动架构组推出的一款开源项目,是高效、易用、功能强大的 api 管理平台,旨在为开发、产品、测试人员提供更优雅的接口管理服务。

 

官网:https://yapi.ymfe.org/

github:https://hellosean1025.github.io/yapi/

文档:https://hellosean1025.github.io/yapi/documents/index.html

 

特性:

 

2、安装

https://hellosean1025.github.io/yapi/devops/index.html#%E5%AE%89%E8%A3%85

环境要求

  • nodejs(7.6+)
  • mongodb(2.6+)

 

windows

环境

1、安装node.js
  https://www.runoob.com/nodejs/nodejs-install-setup.html

2、安装MongoDB
  https://www.runoob.com/mongodb/mongodb-window-install.html

3、安装git
  https://www.runoob.com/git/git-install-setup.html

4、执行
  npm install -g yapi-cli --registry https://registry.npm.taobao.org
  yapi server

进入可视化安装页面
http://127.0.0.1:9000
技术分享图片

 

技术分享图片

 

修改公司名称和邮箱地址,点击开始部署

技术分享图片

执行 node vendors/server/app.js

提示安装完成
访问 http://127.0.0.1:3000

用户登陆:输入您刚才设置的管理员邮箱,默认密码(ymfe.org) 登录系统(默认密码可在个人中心修改)。 

 

服务器管理

PM2是node进程管理工具,可以利用它来简化很多node应用管理的繁琐任务,如性能监控、自动重启、负载均衡等,而且使用非常简单。

官网推荐使用 pm2 管理 node 服务器启动,停止,具体使用方法可参考下面的教程:

安装

 

npm install pm2@latest -g

 

执行

切换到yapi的vendors目录 执行pm2 start

 

pm2 start server/app.js --watch

 

 

 

 

 Linux安装

 docker安装:https://www.cnblogs.com/qgc1995/p/9549896.html

原文:https://www.cnblogs.com/mituxiaoshutong/p/11284015.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!