From a06c60f644aa22c433522047044608ffd13dae5f Mon Sep 17 00:00:00 2001 From: zhh Date: Thu, 6 Dec 2018 15:07:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=9C=A8=E7=BA=BF=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 ++++-- config/prod.env.js | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7a5dff8..bebd172 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,8 @@ ## 项目演示 +项目在线演示地址:[www.macro.com/mall-admin/index.html](http://39.98.69.210/index.html) + ![https://github.com/macrozheng/mall/blob/master/document/resource/mall-admin.gif](https://github.com/macrozheng/mall/blob/master/document/resource/mall-admin.gif) ## 技术选型 @@ -64,8 +66,8 @@ src -- 源码目录 - 该项目为前后端分离项目,要先搭建后台项目才可正常访问接口,搭建后台参考后端项目[传送门](https://github.com/macrozheng/mall); - 克隆源代码到本地,使用IDEA打开,并完成编译; -- 运行命令:npm run dev,访问地址:[http://localhost:8090](http://localhost:8090) 即可打开后台管理系统页面。 -- 默认登录账号:admin 123456 +- 运行命令:npm run dev,访问地址:[http://localhost:8090](http://localhost:8090) 即可打开后台管理系统页面; +- 考虑到后台搭建的复杂性,本项目已开放后台在线API,只需要将config/dev.env.js文件中的BASE_API改为http://39.98.69.210即可免后台搭建。 ## 许可证 diff --git a/config/prod.env.js b/config/prod.env.js index 661e825..71eccee 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -1,5 +1,5 @@ 'use strict' module.exports = { NODE_ENV: '"production"', - BASE_API: '"http://mall-admin:8080"' + BASE_API: '"http://39.98.69.210:8080"' }