当前位置:网站首页>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.
边栏推荐
- 2022-2028 global PTFE lined valve industry research and trend analysis report
- Introduction to ES6 promise, new features of ES7 and es8 async and await
- Techo youth 2022 academic year college open class: behind the live broadcast of Lianmai, explore how to apply audio and video technology
- PS2 handle-1 "recommended collection"
- 20220216 misc buuctf backdoor killing (d shield scanning) - clues in the packet (Base64 to image)
- What is the fastest way to import data from HDFS to Clickhouse? Spark is imported through JDBC or HDFS
- Redis - how to understand publishing and subscribing
- 2022-2028 global rampant travel industry research and trend analysis report
- The full technology stack, full scene and full role cloud native series training was launched to help enterprises build a hard core cloud native technology team
- Rust book materials - yazhijia Library
猜你喜欢

MySQL variables, stored procedures and functions

20220215 misc buctf easycap Wireshark tracks TCP flow hidden key (use of WinHex tool)

Bugku CTF daily one question dark cloud invitation code

2022-2028 global herbal diet tea industry research and trend analysis report

2022-2028 global encrypted external hard disk industry research and trend analysis report

CentOS installation starts redis

2022-2028 global capsule shell industry research and trend analysis report

SSM integration process (integration configuration, function module development, interface test)

1. crawler's beautifulsoup parsing library & online parsing image verification code

Maxpool2d explanation -- Application in arrays and images
随机推荐
The principle and related problems of acid in MySQL
76 page comprehensive solution 2022 for smart Logistics Park (download attached)
LVM snapshot: preparation of backup based on LVM snapshot
20220216 misc buuctf backdoor killing (d shield scanning) - clues in the packet (Base64 to image)
Rust controls Dajiang programmable UAV Tello
五分钟搞懂探索式测试
Teach you how to use Hal library to get started -- become a lighting master
2022-2028 global plant peptone industry research and trend analysis report
Longest valid bracket
Maxpool2d explanation -- Application in arrays and images
CentOS 6.3 x64 PHP 5.2.6 扩展安装OpenSSL出错的解决方法
Inventory the six second level capabilities of Huawei cloud gaussdb (for redis)
left join左连接匹配数据为NULL时显示指定值
The programmer's girlfriend gave me a fatigue driving test
2022-2028 global carbon fiber room scraper system industry research and trend analysis report
Thoughts on the future of data analysis in "miscellaneous talk"
2022-2028 global 3D printing ASA consumables industry research and trend analysis report
PS2 handle-1 "recommended collection"
Wordpress blog uses volcano engine veimagex for static resource CDN acceleration (free)
20220215-ctf-misc-buuctf-einstein-binwalk analyze picture-dd command separate zip file -- look for password in picture attribute