1 安装MongoDB
菜鸟教程安装:https://www.runoob.com/mongodb/mongodb-window-install.html
2 安装Node.js和npm
菜鸟教程:https://www.runoob.com/nodejs/nodejs-install-setup.html;
查看Node.js版本:
node –v
查看npm版本:
npm -v
3 部署yapi
打开要创建项目的路径,
创建文件夹:
mkdir yapi
cd yapi
下载项目,进入项目复制项目配置文件:
git clone https://github.com/YMFE/yapi.git vendors
cp vendors/config_example.json ./config.json
安装依赖包,初始化数据:
cd vendors npm install --production --registry https://registry.npm.taobao.org npm run install-server
配置的初始化数据文件config.json: