{"id":22541343,"url":"https://github.com/pandaoh/react_micro_web","last_synced_at":"2025-04-09T21:45:51.660Z","repository":{"id":49842218,"uuid":"516288752","full_name":"pandaoh/react_micro_web","owner":"pandaoh","description":"( 迁移 =\u003e https://github.com/biugle/web_base )-太极(TaiJi)-基于 React + TypeScript + Vite + Antd + Electron 实现的伪微前端模板(适用于开发大型/复杂项目但又人数较少的情况)","archived":false,"fork":false,"pushed_at":"2023-05-19T02:44:34.000Z","size":4689,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-23T23:42:56.315Z","etag":null,"topics":["ant-design","antd","antd-admin","antd-admin-react","antd-pro","electron","eslint","husky","micro-fontend","micro-framework","micro-web","prettier","react","react-admin","react-admin-template","react-app","react-micro-apps","sass","typescript","vite"],"latest_commit_sha":null,"homepage":"https://github.com/biugle/web_base","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pandaoh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-21T08:31:49.000Z","updated_at":"2023-05-31T14:37:13.000Z","dependencies_parsed_at":"2023-01-27T16:00:28.524Z","dependency_job_id":null,"html_url":"https://github.com/pandaoh/react_micro_web","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pandaoh%2Freact_micro_web","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pandaoh%2Freact_micro_web/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pandaoh%2Freact_micro_web/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pandaoh%2Freact_micro_web/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pandaoh","download_url":"https://codeload.github.com/pandaoh/react_micro_web/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248119439,"owners_count":21050754,"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":["ant-design","antd","antd-admin","antd-admin-react","antd-pro","electron","eslint","husky","micro-fontend","micro-framework","micro-web","prettier","react","react-admin","react-admin-template","react-app","react-micro-apps","sass","typescript","vite"],"created_at":"2024-12-07T12:15:30.785Z","updated_at":"2025-04-09T21:45:51.636Z","avatar_url":"https://github.com/pandaoh.png","language":"TypeScript","readme":"# 2023.5 迁移至 [web_base](https://github.com/biugle/web_base)\n\n------\n\n# react_micro_web\n\n\u003e 太极(TaiJi)-基于 React + TypeScript + Vite + Antd + Electron 实现的伪微前端模板(适用于开发大型/复杂项目但又人数较少的情况)\n\n## Technology Stack\n\n* React 17.x\n* Redux Toolkit\n* TypeScript\n* Scss/Less\n* Ant Design 4.x\n* Vite 3.x\n* Electron\n* EsLint\n* Prettier\n* Husky\n\n## Use\n\n```bash\ngit clone https://github.com/pandaoh/react_micro_web.git\n\nnpm i -g js-xcmd\nxcmd create-micro-web [dir]\n```\n\n## Start\n\n* `npm install` or `npm run init`\n\n## Development\n\n* `npm run dev` or `npm run dev:exe`\n\n## Preview\n\n* `npm run server` or `npm run server:exe`\n\n## Build\n\n* `npm run build` or `npm run build:exe`\n\n## Code Check\n\n* `npm run lint`\n\n## Dir Structure Design\n\n\u003e 目录结构设计\n\n```txt\n________________________________________________________________________________\n├─.helper（项目辅助工具类目录）\n|    ├─prod（生产环境工具）\n|    ├─dev（开发环境工具）\n|    ├─ci_cd（CI/CD 工具）\n├─src（源代码目录）\n|  ├─main.tsx（主程序）\n|  ├─_custom（主程序自定义内容目录：指令、hook、业务通用方法等...）\n|  ├─types（主程序类型声明目录）\n|  ├─consts（主程序通用常量目录）\n|  ├─libs（主程序插件管理目录）\n|  ├─tools（主程序通用工具类目录）\n|  ├─locales（主程序国际化配置目录）\n|  ├─common（全局通用组件目录）\n|  ├─layouts（主程序通用布局组件目录）\n|  ├─views（主程序页面目录）\n|  ├─services（主程序接口服务目录）\n|  ├─redux（主程序状态管理目录）\n|  ├─router（主程序路由器与配置目录）\n|  ├─resource（主程序通用资源目录）\n|  ├─configuration（主程序配置管理目录）\n|  ├─modules（所有子模块目录）\n|  |    ├─ModuleA（模块 ModuleA 目录）\n|  |    |    ├─_custom（模块自定义内容目录：指令、hook、业务通用方法等...）\n|  |    |    ├─types（模块类型声明目录）\n|  |    |    ├─consts（模块通用常量目录）\n|  |    |    ├─plugins（模块插件管理目录）\n|  |    |    ├─utils（模块通用工具类目录）\n|  |    |    ├─lang（模块国际化配置目录）\n|  |    |    ├─components（模块通用组件目录）\n|  |    |    ├─positions（模块通用布局组件目录）\n|  |    |    ├─pages（模块页面目录）\n|  |    |    ├─apis（模块接口服务目录）\n|  |    |    ├─store（模块状态管理目录）\n|  |    |    ├─routes（模块路由器与配置目录）\n|  |    |    ├─static（模块通用资源目录）\n|  |    |    ├─config（模块配置管理目录）\n├─public（项目通用静态资源目录）\n├─declare（整体通用声明管理目录）\n├─tests（测试管理目录）\n├─settings（项目 settings 管理目录）\n├─mocks（项目 mocks 管理目录）\n├─hooks（项目 hooks 管理目录）\n├─electron（集成 electron 代码目录）\n├─index.html（首页）\n├─tsconfig.json（tsconfig 配置文件）\n├─tsconfig.electron.json（electron tsconfig 配置文件）\n├─tsconfig.node.json（node tsconfig 配置文件）\n├─vite.config.ts（vite 配置文件）\n├─.editorconfig（编辑器通用配置文件）\n├─.env.electron（electron 开发环境变量）\n├─.env.development（开发环境变量）\n├─.env.production（生产环境变量）\n├─.eslintignore（eslint ignore）\n├─.eslintrc.js（eslint config）\n├─.prettierignore（prettier ignore）\n├─.prettierrc.js（prettier config）\n├─.gitignore（git ignore）\n├─package.json（package.json）\n├─README.md（介绍文档）\n▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔\n```\n\n## Docs\n\n* [React](https://reactjs.bootcss.com/)\n* [Redux Toolkit](http://cn.redux.js.org/redux-toolkit/overview/)\n* [Vite](https://vitejs.cn/guide/)\n* [Ant Design](https://ant.design/components/overview-cn/)\n* [Ant Design ProComponents](https://procomponents.ant.design/components/)\n\n## Others\n\n* [Issue](https://github.com/pandaoh/react_micro_web/issues)\n* [Pull Request](https://github.com/pandaoh/react_micro_web/pulls)\n* [hxbpandaoh@163.com](mailto:hxbpandaoh@163.com)\n* [Blog](http://a.biugle.cn)\n* Leo He\n\n\u003e Buy me a coffee!\n\n\u003cdiv style=\"display:flex;justify-content:center;align-items:center;\"\u003e\n  \u003cimg src=\"https://a.biugle.cn/images/alipay.png\" style=\"width:200px;\" alt=\"Alipay\" title=\"Alipay\" /\u003e\n  \u003cimg src=\"https://a.biugle.cn/images/liuyan.gif\" style=\"width:200px;\" alt=\"(0.0)\" title=\"(0.0)\" /\u003e\n  \u003cimg src=\"https://a.biugle.cn/images/wechatpay.png\" style=\"width:200px;\" alt=\"WeChat\" title=\"WeChat\" /\u003e\n\u003c/div\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpandaoh%2Freact_micro_web","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpandaoh%2Freact_micro_web","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpandaoh%2Freact_micro_web/lists"}