All Projects → pythonsir → wx-react-app

pythonsir / wx-react-app

Licence: GPL-3.0 license
使用Create-React-App 和 Ant Design Pro 框架整合,演示地址:

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects
HTML
75241 projects

Projects that are alternatives of or similar to wx-react-app

create-react-redux-app
React boilerplate based on create-react-app
Stars: ✭ 49 (+206.25%)
Mutual labels:  create-react-app, react-router-redux, react-router-dom
epee-react-admin
🗡简洁、高效、易扩展的 React 快速开发模板,基于布局设计,纯 Hooks 开发,包含中后台应用常用功能
Stars: ✭ 87 (+443.75%)
Mutual labels:  create-react-app, antd
Vue Antd Admin
🐜 Ant Design Pro's implementation with Vue
Stars: ✭ 2,766 (+17187.5%)
Mutual labels:  antd, ant-design-pro
nodejs-spider
No description or website provided.
Stars: ✭ 18 (+12.5%)
Mutual labels:  create-react-app, antd
umi-plugin-antd-theme
🎨 Best theme plugin
Stars: ✭ 77 (+381.25%)
Mutual labels:  antd, ant-design-pro
React
React+webpack+redux+ant design+axios+less全家桶后台管理框架
Stars: ✭ 4,414 (+27487.5%)
Mutual labels:  antd, ant-design-pro
ant-design-snippets
ant-design-snippets
Stars: ✭ 18 (+12.5%)
Mutual labels:  antd, react-router-dom
React Antd Admin
后台前端管理系统,基于react、typescript、antd、dva及一些特别优秀的开源库实现
Stars: ✭ 117 (+631.25%)
Mutual labels:  create-react-app, antd
Epee React Admin Ts
🗡简洁、高效、易扩展的 React 快速开发模板,基于布局设计,纯 Hooks 开发,提供全链路类型检查及工具
Stars: ✭ 68 (+325%)
Mutual labels:  create-react-app, antd
React Latest Framework
a client framework of React
Stars: ✭ 835 (+5118.75%)
Mutual labels:  create-react-app, antd
antd-pro-toolkit
🐜ant design pro toolkit.
Stars: ✭ 13 (-18.75%)
Mutual labels:  antd, ant-design-pro
react-antd-admin
react-antd-admin 是一个后台集成解决方案,它基于 react 和 antd; 内置了动态路由,标签页缓存,权限验证、切换功能
Stars: ✭ 42 (+162.5%)
Mutual labels:  create-react-app, antd
public-ol-web-template
OrangeLoops Web Project Boilerplate
Stars: ✭ 28 (+75%)
Mutual labels:  create-react-app, antd
Create React App Antd
Use antd in create-react-app without ejecting ✨
Stars: ✭ 494 (+2987.5%)
Mutual labels:  create-react-app, antd
React Admin
基于[email protected]的react动态权限后台管理系统模板
Stars: ✭ 151 (+843.75%)
Mutual labels:  create-react-app, antd
hotlist
今日热榜(前端)
Stars: ✭ 51 (+218.75%)
Mutual labels:  create-react-app, antd
create-material-ui-app
create-react-app + storybook + storybook-addon-material-ui
Stars: ✭ 55 (+243.75%)
Mutual labels:  create-react-app
use-antd-resizable-header
antd表格头拖拽hook
Stars: ✭ 63 (+293.75%)
Mutual labels:  antd
antd-react-form-builder
Example
Stars: ✭ 74 (+362.5%)
Mutual labels:  antd
antd-multi-cascader
A multiple cascader component for antd
Stars: ✭ 81 (+406.25%)
Mutual labels:  antd

wx-react-app

node npm antd ant-design-pro

使用 Create-React-App + Ant-Design-Pro 框架整合,集合了react-redux、react-router-redux、redux-saga、axios 等。

重要说明

为什么不使用 Ant Design 官方的构建工具进行构建?

由于官方构建工具,在 Debug 的时候,无法在源码上进行调试,通过浏览器 Sources 看到的源码是编译后的代码,给调试造成了很大的障碍,所以采用上述方法进行了一下整合。

上述问题,据说在 Ant Design 官方构建工具 [email protected] 已经解决掉了,感兴趣的童鞋可以去下载试一下。

效果gif

版本说明

wx-react-app 在 v0.3.0 之后加入了接口服务。

开源项目 wx-react-service 为其提供接口服务支持。

wx-react-app 在 v0.3.0 之前还是采用 mock.js模拟数据

项目结构

- build                      打包后的项目目录
- public
  - favicon.ico
  - index.html               主页面
  - mainifest.json
- src                        源码文件夹
  - assets                   资源文件夹
  - common
    - menu.js                菜单配置文件
    - router.js              路由配置文件
  - components               组件文件夹
    ...
  - layouts                  布局文件夹
    - BaseLayout.js          后台布局
    - BaseLayout.less
    - UserLayout.js          登录布局
    - UserLayout.less
  - mock                     模拟数据文件夹
    ......
  - redux
    - index.js               所有同步redux的入口
    ......                   
  - routes                   容器组件文件夹
    ......
  - saga                     
    - index.js               异步redux的入口
    ......
  - services
    - api.js                 请求入口
  - store
    - index.js
  - untils                   辅助类
    .....
  index.js
  index.css
- config-overrides.js        webpack配置文件
......

安装

下载完成后,在项目根目录使用 npm install 或者 yarn install , 推荐使用 yarn 安装。

启动

在根目录运行如下命令:
yarn start

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].