# YAip **Repository Path**: wxpcode123/YAip ## Basic Information - **Project Name**: YAip - **Description**: 二次开发YApi,可以自动切换请求后台数据和Mock数据。 - **Primary Language**: JavaScript - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-04-28 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # YAip #### 介绍 二次开发YApi,可以自动切换请求后台数据和Mock数据。 #### 软件架构 软件架构说明 ### 官方文档 https://hellosean1025.github.io/yapi/devops/index.html #### 安装教程 ``` cd vendors npm install --production --registry https://registry.npm.taobao.org npm run install-server //安装程序会初始化数据库索引和管理员账号,管理员账号名可在 config.json 配置 node server/app.js //启动服务器后,请访问 127.0.0.1:{config.json配置的端口},初次运行会有个编译的过程,请耐心等候 ``` 端口号:3000 ### config.json配置 ``` Mogodb数据库配置: { "port": "3000", "adminAccount": "admin@wxp.com", "db": { "servername": "10.10.11.64", "DATABASE": "yapi", "port": "27017", "user": "wxp", "pass": "123456" }, "mail": { "enable": false, "host": "smtp.163.com", "port": 465, "from": "***@163.com", "auth": { "user": "***@163.com", "pass": "*****" } } } ```