{"id":15029824,"url":"https://github.com/lanif-ui/dva-boot-admin","last_synced_at":"2025-05-15T20:03:44.926Z","repository":{"id":31907252,"uuid":"114507849","full_name":"LANIF-UI/dva-boot-admin","owner":"LANIF-UI","description":":cake: react admin dashboard ui LANIF-ADMIN --- react 16 + react-router 4 + dva 2 + antd 4 后台管理 脚手架","archived":false,"fork":false,"pushed_at":"2023-01-03T17:11:50.000Z","size":90112,"stargazers_count":1678,"open_issues_count":31,"forks_count":459,"subscribers_count":62,"default_branch":"master","last_synced_at":"2025-05-15T20:03:40.847Z","etag":null,"topics":["admin","admin-dashboard","ant-design","boilerplate","create-react-app-v2","design","desktop","dva","enterprise","lanif-admin","lanifadmin","react","react-router","react-ui","redux","ui"],"latest_commit_sha":null,"homepage":"https://lanif-ui.github.io/dva-boot-admin","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LANIF-UI.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-17T03:55:41.000Z","updated_at":"2025-05-07T14:45:16.000Z","dependencies_parsed_at":"2023-01-14T20:15:17.065Z","dependency_job_id":null,"html_url":"https://github.com/LANIF-UI/dva-boot-admin","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LANIF-UI%2Fdva-boot-admin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LANIF-UI%2Fdva-boot-admin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LANIF-UI%2Fdva-boot-admin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LANIF-UI%2Fdva-boot-admin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LANIF-UI","download_url":"https://codeload.github.com/LANIF-UI/dva-boot-admin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254414497,"owners_count":22067272,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["admin","admin-dashboard","ant-design","boilerplate","create-react-app-v2","design","desktop","dva","enterprise","lanif-admin","lanifadmin","react","react-router","react-ui","redux","ui"],"created_at":"2024-09-24T20:11:42.984Z","updated_at":"2025-05-15T20:03:43.213Z","avatar_url":"https://github.com/LANIF-UI.png","language":"JavaScript","readme":"[English](./README_en-US.md) | 简体中文\n\n\u003cp align=\"center\"\u003e\n    \u003cimg alt=\"dva-boot-admin\" src=\"https://user-images.githubusercontent.com/1697158/49214902-8f888180-f402-11e8-8207-84d5cdf9d9bf.png\" width=\"140\"\u003e\n\u003c/p\u003e\n\u003ch1 align=\"center\"\u003eDVA Boot Admin\u003c/h1\u003e\n\u003ch3 align=\"center\"\u003e:lemon: :tangerine: :cherries: :cake: :grapes: :watermelon: :strawberry: :corn: :peach: :melon:\u003c/h3\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/license-MIT-brightgreen.svg\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/developing%20with-DVA%20BOOT%20ADMIN-2077ff.svg\"\u003e\n\u003c/p\u003e\n\n全新升级，已支持Ant.Design 4.0\n\n基于React生态系统的最成熟的技术体系，搭建的一套开箱即用的后台管理系统，框架里包含了一些独有的定制组件，以及许多经过大量实践口碑良好的第三方组件，它不仅仅是一个简单的仪表盘展示界面，更是保证您下一个web项目所必需的所有工具，我们希望使用它的人可以快速、稳定的开发出健壮、美观、易用的web程序。\n\n\n[GitHub主页](https://github.com/LANIF-UI/dva-boot-admin) |\n[码云主页](https://gitee.com/wiqi/dva-boot-admin)\n\n![](https://ucarecdn.com/b296e689-19fd-46f5-863e-40c0d4ba7a61/1.jpg)\n\n## 目录\n* [功能](#feature)\n* [工程结构](#structure)\n* [开发](#usage)\n* [文档](https://github.com/LANIF-UI/dva-boot-admin/blob/master/docs/index.md)\n  - [如何开始](https://github.com/LANIF-UI/dva-boot-admin/blob/master/docs/start.md)\n  - [全局配置](https://github.com/LANIF-UI/dva-boot-admin/blob/master/docs/config.md)\n  - [modelEnhance用法](https://github.com/LANIF-UI/dva-boot-admin/blob/master/docs/modelEnhance.md)\n  - [pageHelper用法](https://github.com/LANIF-UI/dva-boot-admin/blob/master/docs/pageHelper.md)\n  - [组件](https://github.com/LANIF-UI/dva-boot-admin/blob/master/docs/components.md)\n  - [接口数据模拟](https://github.com/LANIF-UI/dva-boot-admin/blob/master/docs/mock.md)\n  - [打包](https://github.com/LANIF-UI/dva-boot-admin/blob/master/docs/build.md)\n  - [FAQs](https://github.com/LANIF-UI/dva-boot-admin/blob/master/docs/faqs.md)\n* [截图](#gallery)\n* [更新日志](https://github.com/LANIF-UI/dva-boot-admin/blob/master/CHANGELOG.md)\n* [结尾](#end)\n\n## 功能\n- **封装了dva框架的数据流转**，简单的请求可以不用在model和service中定义\n- **封装了数据模拟**，可以独立于后台开发前台功能\n- **封装了分页请求**，简化并规范了分页逻辑\n- **封装了fetch请求**，适应与后台多种交互请求, body参数 parameter参数 path参数，动态请求头，请求前后拦截\n- **路由按需加载**，首屏加载超快\n- **扩展了antd写了许多实用的UI**，通过一个配置即可生成，后台CRUD三件套(数据表格，搜索框，新增编辑表单)\n- **按业务模块划分的目录结构**，开发独力功能时无需分心其它模块，做到最小耦合\n- 生产环境下打包，gzip后只有**2.09 MB**，只使用常用模块后不到**1 MB**\n- 一些常用的小部件用法\n- 许多精心设计的页面及交互场景\n- [dva-boot](https://github.com/LANIF-UI/dva-boot)脚手架封装的功能\n- 全局异常处理，全局请求拦截，**公共配置提取**\n- **代码自动配置工具**[boot-template-cli](https://github.com/weiq/boot-template-cli)\n\n## 工程结构\n```\n.\n├── public                   # 不参与编译的资源文件\n├── templates                # 为代码生成所准备的模板文件\n├── src                      # 主程序目录\n│   ├── index.js             # 程序启动和渲染入口文件\n│   ├── config.js            # 全局配置\n│   ├── components           # 全局公共组件\n│   ├── layouts              # 页面结构组件\n│   │   ├── BasicLayout      # 基本布局\n│   │   └── OtherLayout      # 布局组件根据具体功能调整，在路由配置中引用\n│   ├── routes               # 动态路由目录（每个功能一个文件夹的MVC结构）\n│   │   ├── index.js         # 路由配置文件\n│   │   ├── Home             # 功能模块\n│   │   │   ├── index.js     # 路由配置文件\n│   │   │   ├── assets       # 单独属于这个模块的静态资源文件\n│   │   │   ├── components   # 页面组件\n│   │   │   ├── model        # dva model\n│   │   │   ├── service      # dva service\n│   │   │   └── routes **    # 子路由(目录结构与父级相同)\n│   │   └── Login            # 功能模块\n│   │       ├── index.js     # 路由配置文件\n│   │       ├── assets       # 单独属于这个模块的静态资源文件\n│   │       ├── components   # 页面组件\n│   │       ├── model        # dva model\n│   │       ├── service      # dva service\n│   │       └── routes **    # 子路由(目录结构与父级相同)\n│   ├── utils                # 工具类\n│   └── assets               # 资源文件\n│           ├── fonts        # 字体 \u0026 字体图标\n│           ├── images       # 图片\n│           └── styles       # 全局样式\n```\n\n## 使用方法\n\n``` javascript\n$ git clone https://github.com/LANIF-UI/dva-boot-admin.git\n$ cd dva-boot-admin\n// 安装依赖\n$ yarn\n// 启动\n$ yarn start\n// 打包\n$ yarn build\n// 打包带图形化分析\n$ yarn build --analyze\n```\n\n## 兼容性\n\n| [\u003cimg src=\"https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png\" alt=\"IE / Edge\" width=\"24px\" height=\"24px\" /\u003e](http://godban.github.io/browsers-support-badges/)\u003c/br\u003eIE / Edge | [\u003cimg src=\"https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png\" alt=\"Firefox\" width=\"24px\" height=\"24px\" /\u003e](http://godban.github.io/browsers-support-badges/)\u003c/br\u003eFirefox | [\u003cimg src=\"https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png\" alt=\"Chrome\" width=\"24px\" height=\"24px\" /\u003e](http://godban.github.io/browsers-support-badges/)\u003c/br\u003eChrome | [\u003cimg src=\"https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png\" alt=\"Safari\" width=\"24px\" height=\"24px\" /\u003e](http://godban.github.io/browsers-support-badges/)\u003c/br\u003eSafari | [\u003cimg src=\"https://raw.githubusercontent.com/alrra/browser-logos/master/src/opera/opera_48x48.png\" alt=\"Opera\" width=\"24px\" height=\"24px\" /\u003e](http://godban.github.io/browsers-support-badges/)\u003c/br\u003eOpera |\n| --------- | --------- | --------- | --------- | --------- | \n| \u003e= IE11 | last 2 versions | last 2 versions | last 2 versions | last 2 versions\n\n## 结尾\n\n欢迎大家提问题，感谢大家的PR，如果觉得不错，还请帮忙加个:star:哦\n\n企鹅群 820881369 :penguin:\n\n# 截图\n\n![](https://ucarecdn.com/7602439b-fa79-4a57-a2f1-c4448710c1c2/14.jpg)\n![](https://ucarecdn.com/4de73808-81bf-4fe9-a6a7-fb21000f0e56/banner.gif)\n![](https://ucarecdn.com/f1f5cb8f-5209-4b91-beaf-e9c0e3e3737f/111.gif)\n![](https://ucarecdn.com/fcfdbd3f-3d43-4a1e-a090-10038f92e1a6/13.jpg)\n![](https://ucarecdn.com/6f9862ab-d9e6-4bda-9c6f-9b6a608ccc2a/12.jpg)\n![](https://ucarecdn.com/fd93aad7-7963-4cbb-9ffd-4a09c44ee0a0/11.jpg)\n![](https://ucarecdn.com/5440ec1c-f524-46ab-826b-742f20476ddf/15.jpg)\n![](https://ucarecdn.com/2f35d9c3-d5e8-4519-bfbc-a0ee310e6817/2.jpg)\n![](https://ucarecdn.com/eaef12d9-c878-4311-a539-cf53fd461280/3.jpg)\n![](https://ucarecdn.com/e44e4383-d49c-46a6-a708-dbc5078d33f4/4.jpg)\n![](https://ucarecdn.com/bef74a5c-fc05-4dcb-8512-7429971110c1/6.jpg)\n![](https://ucarecdn.com/55cdf8da-37e0-4f19-b24f-00f00eddf5e1/5.jpg)\n![](https://ucarecdn.com/890cae0d-dcde-48b4-9434-19e5fee2c883/9.jpg)\n![](https://ucarecdn.com/54014eec-406b-437f-9356-f466a1a868ab/7.jpg)\n![](https://ucarecdn.com/4e8c9b75-11df-4108-8437-bdb2627e3ebc/8.jpg)\n![](https://ucarecdn.com/7831ce59-f412-4109-a75c-2b9f86b78c43/10.jpg)\n![](https://ucarecdn.com/4cbe9623-30ef-4410-9740-9e03c2f4a84e/mobile1.gif)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flanif-ui%2Fdva-boot-admin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flanif-ui%2Fdva-boot-admin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flanif-ui%2Fdva-boot-admin/lists"}