https://github.com/z9956/react-vite-template
https://github.com/z9956/react-vite-template
react vite
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/z9956/react-vite-template
- Owner: z9956
- Created: 2021-01-30T16:57:11.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-01-10T03:11:22.000Z (over 1 year ago)
- Last Synced: 2025-04-06T07:15:30.695Z (about 1 year ago)
- Topics: react, vite
- Language: JavaScript
- Homepage: https://react-vite-template-chi.vercel.app
- Size: 389 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## React-vite-template
### 基本功能
- 多语言
- 路由鉴权
- 代码格式化
### 技术栈
- react
- vite
- Antd
- zustand
- husky
- eslint
- prettier
- less
- i18n
### 项目结构
```
├── public
├── src
│ ├── api
│ ├── assets
│ ├── config
│ ├── context
│ │ └── AuthContext.js
│ ├── i18n
│ │ ├── index.js
│ │ └── locales
│ │ ├── en_US.json
│ │ └── zh_CN.json
│ ├── pages
│ │ ├── 404.jsx
│ │ ├── home
│ │ │ ├── index.jsx
│ │ │ └── style.module.less
│ │ ├── login
│ │ │ ├── index.jsx
│ │ │ └── style.module.less
│ ├── router
│ │ ├── AuthProvider.jsx
│ │ └── index.jsx
│ ├── store
│ │ └── useAuthStore.js
│ ├── utils
│ │ ├── constant.js
│ │ └── request.js
│ ├── index.css
│ └── main.jsx
├── .gitignore
├── .lintstagedrc.json
├── .prettierignore
├── .prettierrc
├── bun.lockb
├── eslint.config.js
├── index.html
├── package.json
├── README.md
├── vercel.json
└── vite.config.js
```
### 使用方法
```shell
git clone https://github.com/z9956/react-vite-template.git
cd react-vite-template
// 安装依赖
bun i
// 启动
bun dev
// 打包
bun run build
```