当前位置:网站首页>Interface documentation system - Yapi
Interface documentation system - Yapi
2022-07-01 00:29:00 【Another piece of braised pork】
Navigation
Why do we need an interface documentation system ?
At the beginning of my work , When communicating interface details with colleagues , Always used Word Document an interface specification . Not only writing is troublesome , And it's especially easy to forget to update , Some documents are useless svn And so on , Even lost .
Interface document management system , Designed to solve such problems . There are many kinds on the market at present , But its purpose is inseparable from help IT More convenient definition of people 、 modify 、 see 、 Even call the interface .
Yapi It is an interface management system opened by qunar , It is especially suitable for building in the intranet .GitHub Address :YAPI . It has been introduced in detail , Here I mainly talk about my experience of stepping on pits .
Yapi build
Yapi There are two modes to build :1. Visual deployment 2. Command line deployment
1. Visual deployment
The preferred , Need to install nodejs(7.6+) And mongodb(2.6+).
Here's the advice node.js Do not install the latest version , I deployed for the first time V16.14.0, As a result, all kinds of problems . Later, I changed to V12.22.10 edition , All the way ~
perform yapi server Start the visual deployer , Enter the appropriate configuration and click Start deployment , Can complete the whole website deployment . After deployment , Follow the prompts , perform node/{ Website path /server/app.js} Start the server . Open the specified... In the browser url, Click login to enter the administrator email you just set , Default password (ymfe.org) Login system ( The default password can be changed in the personal center ).
npm install -g yapi-cli --registry https://registry.npm.taobao.org
yapi server
2. Command line deployment
mkdir yapi
cd yapi
git clone https://github.com/YMFE/yapi.git vendors // Or download zip Unpack the package to vendors Catalog (clone The whole warehouse is about 140+ M, Can pass `git clone --depth=1 https://github.com/YMFE/yapi.git vendors` Command reduction , Probably 10+ M)
cp vendors/config_example.json ./config.json // Please modify the configuration after copying
cd vendors
npm install --production --registry https://registry.npm.taobao.org
npm run install-server // Setup will initialize database index and administrator account , The administrator account name can be found in config.json To configure
node server/app.js // After starting the server , Please visit 127.0.0.1:{
config.json Configured port }, The first run will have a compilation process , Please wait patiently
3. start-up
Recommended in official documents node app.js Starting mode , The service will be stopped after the session is closed .
Recommended installation forever, To manage services and maintain .
Global installation forever:sudo npm install forever -g
Start the service :forever start app.js
View the current forever Start service directory :forever list
stop it pid Next service :forever stop [pid]
Stop all services :forever stopall
Yapi Use
Yapi Use the tutorial :https://hellosean1025.github.io/yapi/documents/index.html
It is relatively simple to use , and postman similar , After installing the plug-in , It also supports sending requests online , And customization Mock.
边栏推荐
- Red Hat将在Project Atomic上运用容器负载服务器
- CTF tool (1) -- archpr -- including installation / use process
- Combining online and offline, VR panorama is a good way to transform furniture online!
- PS2 handle-1 "recommended collection"
- Five minutes to understand the exploratory test
- Error 2059 when Navicat connects to MySQL
- [DaVinci developer topic] -37- detail IRV: introduction to inter runnable variable + configuration
- The programmer's girlfriend gave me a fatigue driving test
- C# /platform:anycpu32bitpreferred 只能与 /t:exe、/t:winexe 和 /t:appcontainerexe 一起使用
- Error when starting PHP: [pool www] cannot get uid for user '@php_ fpm_ [email protected]’
猜你喜欢

Basic knowledge of Embedded Network - introduction of mqtt
![[UML] UML class diagram](/img/6f/30bd15967103969e600d69e618d8bf.png)
[UML] UML class diagram

To tell you the truth, ThreadLocal is really not an advanced thing

Redis - how to understand publishing and subscribing

20220216 misc buuctf backdoor killing (d shield scanning) - clues in the packet (Base64 to image)

Redis - sentinel mode

CentOS install MySQL

Fh6908a negative pole turn off synchronous rectification analog low voltage drop diode control IC chip tsot23-6 ultra low power rectifier 1W power consumption < 100ua static replacement mp6908

Redis - understand the master-slave replication mechanism

ABAQUS 2022 latest edition - perfect realistic simulation solution
随机推荐
Error 2059 when Navicat connects to MySQL
What does it mean to open an account online? Is it safe to open an account online?
Five minutes to understand the exploratory test
Explain kubernetes backup and recovery tools velero | learn more about carina series phase III
What value should testers play in requirements review? Two minutes will stop you from being stupid
什么是SRM系统,如何规范公司内部采购流程
[PHP] self developed framework qphp, used by qphp framework
LVM snapshot: preparation of backup based on LVM snapshot
2022-2028 global PTFE lined valve industry research and trend analysis report
6-1 exploit -ftp exploit
Wordpress blog uses volcano engine veimagex for static resource CDN acceleration (free)
Bugku CTF daily one question dark cloud invitation code
Introduction to ES6 promise, new features of ES7 and es8 async and await
Redis - cache penetration, cache breakdown, cache avalanche
Design e-commerce seckill system
Which is better, server rental or hosting services in the United States?
Error when starting PHP: [pool www] cannot get uid for user '@php_ fpm_ [email protected]’
1175. 質數排列 / 劍指 Offer II 104. 排列的數目
2022-2028 global ICT test probe industry research and trend analysis report
2022-2028 global rampant travel industry research and trend analysis report