GithubHelp home page GithubHelp logo

varg1714 / yapi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zybieku/yapi

0.0 0.0 0.0 265.2 MB

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

Home Page: http://yapi.smart-xwork.cn/

License: Apache License 2.0

JavaScript 90.92% CSS 0.84% HTML 0.24% SCSS 7.19% Less 0.81%

yapi's Introduction

YApi 可视化接口管理平台 (多级目录分支)

体验地址:

https://yapi.feiyanyun.com/
账号:[email protected] 密码:123456


参考图片 (喜欢的老铁求个star)

img




分支介绍

  • fork 官方 api v1.10.2
  • 主要支持多级目录,添加子目录
  • 支持不同层级目录拖拽
  • 支持多级目录搜索

内网部署

  • 需要事先安装 nodejs,mongodb
  • 这里采用不同安装,部署的方式,大体上步骤和官方一样


方式一zip包解压安装
- 1 下载zip包,解压 多级目录包
- 2 切换到 yapi 目录,修改config配置
- 3 切换到 vendors 目录,运行 npm run install-server (初始数据库,有库数据略过)
- 4 node server/app.js 启动(pm2亦可)



方式二 git下载依赖

1.创建工程目录

 mkdir yapi && cd yapi   #或者手动创建目录   
 git clone https://github.com/zybieku/yapi.git vendors --depth=1 

2.修改配置,安装依赖

config.json里面的内容,具体看官方

 #复制完成后请修改相关配置
 cp vendors/config_example.json ./config.json 
  # 指令打开config,或者用鼠标打开
 vi ./config.json 
 npm install --production --registry https://registry.npm.taobao.org
 #安装程序会初始化数据库,管理员账号名可在 config.json 配置
  npm run install-server 

5.启动(也可以使用pm2)

  #启动服务器后,#请访问 127.0.0.1:{config.json配置的端口}
  node server/app.js 
   # linux 后台模式 注意 nohup 与 & exit
  nohup  node server/app.js exit    

常见问题

    1. 依赖报错 一般依赖报错是由于 yapi的很多依赖库版本有点旧 ,需要手动锁定版本
    1. node-sass node-gyp 安装不上 可能是node-gyp没安装
     npm install -g node-gyp
     npm rebuild node-gyp
    1. 没有ykit指令
      npm install -g ykit

方式三 docker容器
待定

yapi's People

Contributors

hellosean1025 avatar dwb1994 avatar amnsss avatar gaoxiaomumu avatar ariesly15 avatar gandao avatar lwg529 avatar tangcent avatar zybieku avatar fjc0k avatar shouldnotappearcalm avatar chenlizhi55 avatar dear-lizhihua avatar kangofchen avatar dependabot[bot] avatar yuu2lee4 avatar billlucky avatar jayzou avatar spiritree avatar 2234839 avatar congqiu avatar onvno avatar wxxcarl avatar jason-joo avatar duicym avatar aimuz avatar amiezhang avatar ryan-miao avatar redhatxl avatar furioncs avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.