# maxFactorx2 **Repository Path**: webappl/maxFactorx2 ## Basic Information - **Project Name**: maxFactorx2 - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2016-09-07 - **Last Updated**: 2020-12-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## Usage ```bash $ npm install $ npm start ``` ├── /mock/ # 数据mock的接口文件 ├── /src/ # 项目源码目录 │ ├── /components/ # 项目组件 │ ├── /routes/ # 路由组件(页面纬度) │ ├── /models/ # 数据模型 │ ├── /services/ # 数据接口 │ ├── /utils/ # 工具函数 │ ├── route.js # 路由配置 │ ├── index.js # 入口文件 │ ├── index.less │ └── index.html ├── package.json # 项目信息 └── proxy.config.js # 数据mock配置 基于ant(https://ant.design)开发 dva(https://github.com/dvajs/dva) 是一个基于 react 和 redux 的轻量应用框架,概念来自 elm, 支持 side effects, reduecers、热替换、动态加载、react-native、SSR 等。 model 和 component,dva 提供了 connect 方法。串联起来 set NODE_ENV=production && ##上线步骤 ####1.修改请求接口域名 1)src/utils/request.js 修改这两行 const APIDomain = "http://115.28.164.153:9081"; //前两期接口 export const CRMAPIDomain = 'http://115.28.164.153:9082'; //三期接口 2) login.html 修改这行 domain=window.location.hostname.match(/\d+/) ? "http://115.28.164.153:9081" : "http://115.28.164.153:9081"; ####2.运行打包命令 npm run build ####3.提交git ####4.登录服务器 打开cmd sh ssh sqqianmingwei@103.37.141.51 -p9922 NS6w0hwcZIKNmcaXRbsi 192.168.0.125 cd www/maxFactorx2/ ####4.运行拉取代码命令 git pull ###5.访问地址验证是否生效 测试地址: http://dev.data.social-touch.com:30156/ ##上正式环境 把dist目录给后端