I have been looking for an open source platform integrating Api management and a platform that can automatically test online interfaces. I saw the Yapi project last night, and the official demonstration project is also available, which can be solved by using mongodb data. Today I tried to build it myself. Of course, the official side has also provided a website. If you do not have your own server, you can use the official one, However, in order to make trouble, I use my own server to deploy. All factors are controllable! This is very convenient. Now let's go hand in hand to teach how to build an efficient, easy-to-use and powerful API management platform.

Yapi official open source address: Click here to arrive directly

Official demo site: Click here to arrive directly

Preview:
 Teach you how to build an efficient, easy-to-use and powerful API management platform

 Teach you how to build an efficient, easy-to-use and powerful API management platform

Self built tutorial steps:

Environmental requirements:

  • nodejs(7.6+)
  • mongodb(2.6+)

Installation:
I use visual deployment here, and don't need to install git to pull code from the official warehouse

 npm install -g yapi-cli --registry  https://registry.npm.taobao.org yapi server
Run the yapi server to start the visual deployment program, enter the corresponding configuration and click Start Deployment to complete the deployment of the entire website. After the deployment is completed, execute node/{website path/server/app. js} to start the server according to the prompt. Open the specified url in the browser, click Login, enter the administrator email you just set, and log in the system with the default password (ymfe. org) (the default password can be modified in the Personal Center).

Visit at this time http://IP:9090 Open the installer interface and enter information according to the prompt.
 Teach you how to build an efficient, easy-to-use and powerful API management platform

After installation, access the http://IP + You can open the project by setting your own website port~
 Teach you how to build an efficient, easy-to-use and powerful API management platform

The default password is the administrator mailbox you just set, and the default password (ymfe. org) is used to log in to the system (the default password can be modified in the personal center).

Optimization:
1. If you want to use nginx reverse proxy, please configure nginx to support websocket.

 Add in location/ proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade";

2. It is recommended that you use the pm2 manager to manage the opening and closing of services.
Pagoda server panel, one button all-around deployment and management, gift package of 3188 yuan, Click me to get it
 Teach you how to build an efficient, easy-to-use and powerful API management platform

Article Contents