From 86c76f5ab745a044d3ad02ac8f0f1c5fd6f8b16c Mon Sep 17 00:00:00 2001 From: macro Date: Wed, 26 Aug 2020 21:11:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0mall-swarm=E5=90=8E=E5=8F=B0?= =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E6=AD=A5=E9=AA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a72861f..b921220 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,8 @@ src -- 源码目录 ## 搭建步骤 - 下载node并安装:[https://nodejs.org/dist/v12.14.0/node-v12.14.0-x64.msi](https://nodejs.org/dist/v12.14.0/node-v12.14.0-x64.msi); - 该项目为前后端分离项目,访问本地访问接口需搭建后台环境,搭建请参考后端项目[传送门](https://github.com/macrozheng/mall); -- 访问在线接口无需搭建后台环境,只需将config/dev.env.js文件中的BASE_API改为[http://120.27.63.9:8080](http://120.27.63.9:8080)即可; +- 访问在线接口无需搭建后台环境,只需将`config/dev.env.js`文件中的`BASE_API`改为[http://120.27.63.9:8080](http://120.27.63.9:8080)即可; +- 如果你对接的是[mall-swarm](https://github.com/macrozheng/mall-swarm)微服务后台的话,所有接口都需要通过网关访问,需要将`config/dev.env.js`文件中的`BASE_API`改为[http://localhost:8201/mall-admin](http://localhost:8201/mall-admin); - 克隆源代码到本地,使用IDEA打开,并完成编译; - 在IDEA命令行中运行命令:npm install,下载相关依赖; - 在IDEA命令行中运行命令:npm run dev,运行项目;