07 YAPI/Infrastructure - The Road to DevOps
Article Github address, welcome
start
: https://github.com/li-keli/DevOps-WiKi
Introduction
YApi is a locally deployable, visual interface management platform that integrates front-end and back-end and QA https://yapi.ymfe.org
More documentation:
Install
Here we use the Docker method to quickly create a document service:
1. Create a MongoDB data volume
docker volume create mongo_data_yapi
2. Start MongoDB
docker run -d --name mongo-yapi -v mongo_data_yapi:/data/db mongo
3. Obtain the Yapi image, the version information can be viewed in the Alibaba Cloud Image Warehouse
docker pull registry.cn-hangzhou.aliyuncs.com/anoy/yapi
4. Initialize the Yapi database index and administrator account
docker run -it --rm \
--link mongo-yapi:mongo \
--entrypoint npm \
--workdir /api/vendors \
registry.cn-hangzhou.aliyuncs.com/anoy/yapi \
run install-server
5. Start the Yapi service
docker run -d \
--name yapi \
--link mongo-yapi:mongo \
--workdir /api/vendors \
-p 3000:3000 \
registry.cn-hangzhou.aliyuncs.com/anoy/yapi \
server/app.js
Access address http://localhost:3000
In addition, due to the limited knowledge of the author himself, he is all groping, so not all practices are correct, or some practices will have better solutions. I hope readers will correct me. If you have any questions, please leave issues .