Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
macrozheng committed Jan 2, 2019
1 parent 2d278fa commit 5b86413
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,14 @@ src -- 源码目录
```

## 搭建步骤
- 下载node并安装:[https://nodejs.org/dist/v8.9.4/node-v8.9.4-x64.msi](https://nodejs.org/dist/v8.9.4/node-v8.9.4-x64.msi)
- 下载node并安装:[https://nodejs.org/dist/v8.9.4/node-v8.9.4-x64.msi](https://nodejs.org/dist/v8.9.4/node-v8.9.4-x64.msi);
- 该项目为前后端分离项目,访问本地访问接口需搭建后台环境,搭建请参考后端项目[传送门](https://github.com/macrozheng/mall);
- 访问在线接口无需搭建后台环境,只需将config/dev.env.js文件中的BASE_API改为[http:https://39.98.69.210:8080](http:https://localhost:39.98.69.210:8080)即可
- 访问在线接口无需搭建后台环境,只需将config/dev.env.js文件中的BASE_API改为[http:https://39.98.69.210:8080](http:https://localhost:39.98.69.210:8080)即可;
- 克隆源代码到本地,使用IDEA打开,并完成编译;
- 在IDEA命令行中运行命令:npm run dev,访问地址:[http:https://localhost:8090](http:https://localhost:8090) 即可打开后台管理系统页面;
- 如果遇到无法运行该命令,需要配置npm的环境变量,如在path变量中添加:C:\Users\zhenghong\AppData\Roaming\npm;
- 如果遇到IDEA下载项目后没有自动完成编译,需先运行npm install命令。
- 在IDEA命令行中运行命令:npm install,下载相关依赖;
- 在IDEA命令行中运行命令:npm run dev,运行项目;
- 访问地址:[http:https://localhost:8090](http:https://localhost:8090) 即可打开后台管理系统页面;
- 如果遇到无法运行该命令,需要配置npm的环境变量,如在path变量中添加:C:\Users\zhenghong\AppData\Roaming\npm。

## 许可证

Expand Down

0 comments on commit 5b86413

Please sign in to comment.