Browse Source

添加在线项目地址

zhh 6 years ago
parent
commit
a06c60f644
2 changed files with 5 additions and 3 deletions
  1. 4 2
      README.md
  2. 1 1
      config/prod.env.js

+ 4 - 2
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即可免后台搭建。
 
 ## 许可证
 

+ 1 - 1
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"'
 }