window下部署yapi

YApi 是一个可本地部署的、打通先后端及QA的、可视化的接口管理平台。html

环境要求

  • nodejs(尽可能最新版本)
  • mongodb(尽可能最新版本)

一、安装nodenode

https://www.runoob.com/nodejs/nodejs-tutorial.htmlgit

二、安装mongodbmongodb

https://www.runoob.com/mongodb/mongodb-tutorial.htmlnpm

三、下载Yapi后端

https://gitee.com/mirrors/YApiapi

四、到yapi的解压目录下执行app

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

五、访问http://localhost:9090进行我的设置spa

六、切换到部署目录,输入node yapi-master/my-yapi/vendors/server/app.js     必定要注意路径  code

七、访问http://localhost:3000使用,帐号名:”admin@admin.com”,密码:”ymfe.org” 

若是有本身的ip直接把localhost 换上对应的ip就能够外网访问了

相关文章
相关标签/搜索