All Projects → epeejs → epee-react-admin

epeejs / epee-react-admin

Licence: other
🗡简洁、高效、易扩展的 React 快速开发模板,基于布局设计,纯 Hooks 开发,包含中后台应用常用功能

Programming Languages

typescript
32286 projects
HTML
75241 projects
Less
1899 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to epee-react-admin

promotion-web
基于React: v18.x.x/Webpack: v5.x.x/React Router v6.x.x/ Antd: v5..x.x/Fetch Api/ Typescript: v4.x.x 等最新版本进行构建...
Stars: ✭ 374 (+329.89%)
Mutual labels:  antd, react-hooks
forex-web-app
💱 foreign currency exchange app built with react hooks
Stars: ✭ 17 (-80.46%)
Mutual labels:  create-react-app, react-hooks
crud-app
❄️ A simple and beautiful CRUD application built with React.
Stars: ✭ 61 (-29.89%)
Mutual labels:  create-react-app, react-hooks
Epee React Admin Ts
🗡简洁、高效、易扩展的 React 快速开发模板,基于布局设计,纯 Hooks 开发,提供全链路类型检查及工具
Stars: ✭ 68 (-21.84%)
Mutual labels:  create-react-app, antd
public-ol-web-template
OrangeLoops Web Project Boilerplate
Stars: ✭ 28 (-67.82%)
Mutual labels:  create-react-app, antd
React Antd Admin
后台前端管理系统,基于react、typescript、antd、dva及一些特别优秀的开源库实现
Stars: ✭ 117 (+34.48%)
Mutual labels:  create-react-app, antd
hotlist
今日热榜(前端)
Stars: ✭ 51 (-41.38%)
Mutual labels:  create-react-app, antd
react-admin-nest
React和Ant Design和 Nest.js 和 Mysql 构建的后台通用管理系统。持续更新。
Stars: ✭ 123 (+41.38%)
Mutual labels:  antd, react-hooks
movies
🍿 react-app for movies
Stars: ✭ 60 (-31.03%)
Mutual labels:  create-react-app, react-hooks
wx-react-app
使用Create-React-App 和 Ant Design Pro 框架整合,演示地址:
Stars: ✭ 16 (-81.61%)
Mutual labels:  create-react-app, antd
React Latest Framework
a client framework of React
Stars: ✭ 835 (+859.77%)
Mutual labels:  create-react-app, antd
react-antd-admin
基于vite2.x + react17.x + typescript4.x + antd4.x + react-router6.x + mobx6.x编写的一款简单高效的前后端分离的权限管理系统
Stars: ✭ 140 (+60.92%)
Mutual labels:  create-react-app, react-hooks
Create React App Antd
Use antd in create-react-app without ejecting ✨
Stars: ✭ 494 (+467.82%)
Mutual labels:  create-react-app, antd
React Admin
基于[email protected]的react动态权限后台管理系统模板
Stars: ✭ 151 (+73.56%)
Mutual labels:  create-react-app, antd
nodejs-spider
No description or website provided.
Stars: ✭ 18 (-79.31%)
Mutual labels:  create-react-app, antd
react-antd-admin
react-antd-admin 是一个后台集成解决方案,它基于 react 和 antd; 内置了动态路由,标签页缓存,权限验证、切换功能
Stars: ✭ 42 (-51.72%)
Mutual labels:  create-react-app, antd
react-vite-admin
This Starter utilizes React, Recoil, React Query, React Hooks, Typescript, Axios And Vite. 全新技术栈的后台管理系统
Stars: ✭ 90 (+3.45%)
Mutual labels:  antd, react-hooks
laravel-react-boilerplate
Laravel React Boilerplate with Ant Design, Route-Level Code Splitting, Redux, Sanctum Auth
Stars: ✭ 49 (-43.68%)
Mutual labels:  antd, react-hooks
google-place-autocomplete
🏆 Best practice with Google Place Autocomplete API on React
Stars: ✭ 68 (-21.84%)
Mutual labels:  create-react-app, react-hooks
7-react-admin-ts
用 ts + react-hooks 实现的管理后台
Stars: ✭ 23 (-73.56%)
Mutual labels:  antd, react-hooks

epee-react-admin

中后台应用模版,使用 CRA 作为基础模版搭建,简单、易扩展,且不限制技术栈

💡 预览

水平布局 (master):https://epee.netlify.app/ hlayout

垂直布局 (dev-vertical-layout):https://vepee.netlify.app/ vlayout

🚀 特性

包含 CRA 所有功能,同时包含以下功能

  • 基于布局模式开发
  • 根据路由配置生成菜单
  • antd 主题及按需加载
  • 通用权限控制及路由 Hook
  • 支持 less css module
  • 提供常用布局组件
  • 严格的 lint 规则及提交检查

技术栈

react、antd、@reduxjs/toolkit、@epeejs/pro-layout

🏃 开始

yarn
yarn start

为了更好的开发体验,你还需要安装以下 VSCode 插件

  • Prettier - Code formatter
  • ESLint

推荐安装

  • Auto Close Tag
  • Auto Rename Tag
  • CSS Modules
  • Paste JSON as Code
  • ES7 React/Redux/GraphQL/React-Native snippets

🌳 目录结构

├── public
├── src
│   ├── assets               # 本地静态资源
│   ├── components           # 业务通用组件
│   ├── config               # 配置目录,包含主题、路由配置
│   ├── hooks                # 通用 hook
│   ├── layouts              # 通用布局,分为页面布局、路由布局
│   ├── store                # 状态库
│   │   └── slice            # redux slice 目录
│   ├── pages                # 业务页面入口
│   ├── services             # 后台接口服务
│   ├── utils                # 工具库
│   ├── index.less           # 全局样式
│   └── index.tsx            # 全局入口
├── README.md
└── package.json

页面代码结构推荐

参考 antd pro 规范,简单讲就是组件文件夹大写驼峰命名,分组文件夹小写中线(-)连接,路由组件应该是被打平的

开发

新增页面

这里的『页面』指配置了路由,能够通过链接直接访问的模块

1. 新增 tsx、less 文件

src
  models
  pages
+   NewPage.tsx
+   NewPage.module.less

NewPage.tsx 部分代码如下:

export default function NewPage(props: NewPageProps) {
  return <div className={styles.wrap}>New Page</div>;
}

可以键入 tsrfc 快速生成模板代码,后面直接列出代码片段快捷键,不再说明

2. 将页面加入路由

修改 config/routes.ts 内容

export const routes: RouteConfig[] = [
  {
    path: '/',
    component: PageLayout,
    routes: [
      {
        path: '/form',
        name: '表单页',
        icon: FormOutlined,
        routes: [{ path: '/form/basic-form', name: '基础表单', component: BasicForm }],
      },
      ...
+     {
+       path: '/new',
+       name: '新页面',
+       icon: FileOutlined,
+       component: NewPage,
+     },
    ]
  }
]

修改好之后运行,可以看到如下效果

preview

布局与路由

参考 @epeejs/pro-layout 使用文档

权限管理(待补充)

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].