# redux-learn **Repository Path**: jianliwang/redux-learn ## Basic Information - **Project Name**: redux-learn - **Description**: No description available - **Primary Language**: Unknown - **License**: AGPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-01-09 - **Last Updated**: 2020-12-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # wjl_frontend socket.io-learn - 前端项目 ### 项目目录 ``` |-- . |-- src // 项目源码目录 | | | |-- wjl // 项目名称 | | | | | |-- app.jsx // 入口 | | |-- config.js | | |-- components // 项目公共组件 | | | |-- index.js | | | |-- scrollToTop | | | |-- scrollToTop.jsx | | | | | |-- config // 配置相关 | | | |-- dev.js | | | |-- global.js | | | |-- online.js | | | |-- test.js | | | |-- uat.js | | | | | |-- constants // 常量 | | | |-- districts.json | | | | | |-- libs // 公共库 | | | |-- http.js | | | |-- utils.js | | | | | |-- router // 路由配置 | | | |-- config.js | | | |-- index.js | | | | | |-- stores // Mobx状态管理 | | | |-- AppStore.js | | | |-- index.js | | | | | |-- views // 路由页面 | | |-- demo | | | |-- index.jsx | | | |-- css | | | |-- index.less | | |-- index | | |-- index.jsx | | |-- css | | |-- index.less |-- bin // 部署oss | |-- oss.js | |-- build // 代码构建 | |-- webpack.common.js | |-- webpack.dev.js | |-- webpack.prod.js | |-- dist // 构建输出 ``` ### 开发环境搭建 1. 执行 `npm install` 安装依赖文件 2. 执行 `npm start --ENTRY=wjl` 进入开发模式 ### 部署流程 1. 开发环境 `npm run build --ENTRY=wjl --BUILD_ENV=dev` 2. 测试环境 `npm run build --ENTRY=wjl --BUILD_ENV=test` 3. UAT环境 `npm run build --ENTRY=wjl --BUILD_ENV=uat` 4. 生成环境 `npm run build --ENTRY=wjl --BUILD_ENV=online`