2022-10-13 17:44:39 +08:00
< div align = "center" >
2023-07-06 13:14:44 +08:00
< img alt = "V3 Admin Vite Logo" width = "120" height = "120" src = "./src/assets/layouts/logo.png" >
2022-10-13 17:44:39 +08:00
< h1 > V3 Admin Vite< / h1 >
2022-10-14 10:02:09 +08:00
< span > English | < a href = "./README.zh-CN.md" > 中文< / a > < / span >
2022-10-13 17:44:39 +08:00
< / div >
## ⚡ Introduction
2022-09-30 12:23:35 +08:00
2023-08-11 09:34:15 +08:00
V3 Admin Vite is a free and open source middle and background management system basic solution, based on mainstream framework such as Vue3, TypeScript, Element Plus, Pinia and Vite
2022-04-21 18:45:27 +08:00
2023-08-11 11:00:31 +08:00
- Vue Cli 5.x: [v3-admin ](https://github.com/un-pany/v3-admin )
2022-10-12 17:30:08 +08:00
- Electron desktop: [v3-electron-vite ](https://github.com/un-pany/v3-electron-vite )
2022-04-21 18:45:27 +08:00
2023-08-11 11:00:31 +08:00
China repository: [Gitee ](https://gitee.com/un-pany/v3-admin-vite )
2023-08-11 09:34:15 +08:00
2023-08-11 11:00:31 +08:00
## 📚 Document
- Chinese documentation: [link ](https://juejin.cn/post/7089377403717287972 )
- Chinese getting started tutorial: [link ](https://juejin.cn/column/7207659644487139387 )
## 📺 Online preview
| Location | account | Link |
| ------------ | ------------------- | ----------------------------------------------- |
| github-pages | `admin` or `editor` | [link ](https://un-pany.github.io/v3-admin-vite ) |
2023-08-11 09:34:15 +08:00
2023-08-10 18:22:32 +08:00
## ❤️ Generate electricity with love
- **Completely free**: But hopefully you order a star !!!
- **Very concise**: No complicated encapsulation, no complicated type gymnastics, out of the box
- **Detailed annotations**: Each configuration item is written with as detailed comments as possible
- **Latest dependencies**: Regularly update all third-party dependencies to the latest version
- **Very specification**: The code style is unified, the naming style is unified, and the comment style is unified
2022-10-12 17:30:08 +08:00
## Feature
2022-04-22 19:09:33 +08:00
2022-10-12 17:30:08 +08:00
- **Vue3**: The latest Vue3 composition API using Vue3 + script setup
- **Element Plus**: Vue3 version of Element UI
- **Pinia**: An alternative to Vuex in Vue3
- **Vite**: Really fast
- **Vue Router**: router
- **TypeScript**: JavaScript With Syntax For Types
- **PNPM**: Faster, disk space saving package management tool
- **Scss**: Consistent with Element Plus
- **CSS variable**: Mainly controls the layout and color of the item
- **ESlint**: Code verification
- **Prettier**: Code formatting
2022-10-24 14:14:58 +08:00
- **Axios**: Promise based HTTP client (encapsulated)
2022-10-12 17:30:08 +08:00
- **UnoCSS**: Real-time atomized CSS engine with high performance and flexibility
- **Mobile Compatible**: The layout is compatible with mobile page resolution
2022-06-13 18:26:45 +08:00
2022-10-12 17:30:08 +08:00
## Functions
2022-04-23 10:09:03 +08:00
2024-03-08 21:12:48 +08:00
- **User management**: Log in and out of the demo
- **Authority management**: Page-level permissions (dynamic routing), button-level permissions (directive permissions, permission functions), and route navigation guards
2022-10-24 14:14:58 +08:00
- **Multiple Environments**: Development, Staging, Production
2024-03-08 21:12:48 +08:00
- **Multiple themes**: Normal, Dark, Dark Blue, three theme modes
- **Multiple layouts**: Left, Top, Left Top, three layout modes
2022-10-24 14:14:58 +08:00
- **Error page**: 403, 404
2022-10-12 17:30:08 +08:00
- **Dashboard**: Display different Dashboard pages according to different users
2024-03-08 21:12:48 +08:00
- **Other functions**: SVG, Dynamic Sidebar, Dynamic Breadcrumb Navigation, Tabbed Navigation, Screenfull, Adaptive Shrink Sidebar, Hook (Composables)
2022-04-23 10:09:03 +08:00
2022-10-12 17:30:08 +08:00
## 🚀 Development
2022-04-22 19:09:33 +08:00
```bash
2022-10-12 17:30:08 +08:00
# configure
1. installation of the recommended plugins in the .vscode directory
2023-12-02 15:24:15 +08:00
2. node version 18.x or 20+
3. pnpm version 8.x or latest
2022-04-22 19:09:33 +08:00
2022-10-12 17:30:08 +08:00
# clone
2022-04-22 19:09:33 +08:00
git clone https://github.com/un-pany/v3-admin-vite.git
2022-10-12 17:30:08 +08:00
# enter the project directory
2022-04-22 19:09:33 +08:00
cd v3-admin-vite
2022-10-12 17:30:08 +08:00
# install dependencies
2022-04-22 19:09:33 +08:00
pnpm i
2022-10-12 17:30:08 +08:00
# start the service
2022-04-22 19:09:33 +08:00
pnpm dev
```
2022-10-12 17:30:08 +08:00
## ✔️ Preview
2022-04-22 19:09:33 +08:00
```bash
2022-10-12 17:30:08 +08:00
# stage environment
2022-04-22 19:09:33 +08:00
pnpm preview:stage
2022-10-12 17:30:08 +08:00
# prod environment
2022-04-22 19:09:33 +08:00
pnpm preview:prod
```
2022-10-12 17:30:08 +08:00
## 📦️ Multi-environment packaging
2022-04-22 19:09:33 +08:00
```bash
2022-10-12 17:30:08 +08:00
# build the stage environment
2022-04-22 19:09:33 +08:00
pnpm build:stage
2022-10-12 17:30:08 +08:00
# build the prod environment
2022-04-22 19:09:33 +08:00
pnpm build:prod
```
2023-02-16 14:38:21 +08:00
## 🔧 Code inspection
2022-04-22 19:09:33 +08:00
```bash
2023-02-16 14:38:21 +08:00
# code formatting
2022-04-22 19:09:33 +08:00
pnpm lint
2023-02-16 14:38:21 +08:00
# unit test
pnpm test
2022-04-22 19:09:33 +08:00
```
2022-04-22 12:47:04 +08:00
2022-10-12 17:30:08 +08:00
## Git commit specification reference
- `feat` add new functions
- `fix` Fix issues/bugs
- `perf` Optimize performance
- `style` Change the code style without affecting the running result
- `refactor` Re-factor code
- `revert` Undo changes
- `test` Test related, does not involve changes to business code
- `docs` Documentation and Annotation
- `chore` Updating dependencies/modifying scaffolding configuration, etc.
- `workflow` Work flow Improvements
- `ci` CICD
- `types` Type definition
- `wip` In development
2022-12-30 17:55:09 +08:00
## Project preview



2022-10-14 10:02:09 +08:00
## 💕 Contributors
2022-11-16 09:20:38 +08:00
Thanks to all the contributors!
2022-10-14 10:02:09 +08:00
< a href = "https://github.com/un-pany/v3-admin-vite/graphs/contributors" >
< img src = "https://contrib.rocks/image?repo=un-pany/v3-admin-vite" / >
< / a >
2022-11-07 17:44:48 +08:00
## 💕 Thanks star
Small projects are not easy to get a star, if you like this project, welcome to support a star! This is the only motivation for the author to maintain it on an ongoing basis (whisper: it's free after all)
2023-04-12 18:07:07 +08:00
## ☕ Donate
[See how to donate ](https://github.com/un-pany/v3-admin-vite/issues/69 )
2022-10-12 17:30:08 +08:00
## Group
2022-10-24 14:14:58 +08:00
QQ group: 1014374415 (left) & & add me on WeChat, Invite you to join WeChat group (right)
2022-04-22 19:09:33 +08:00
2022-10-14 09:35:13 +08:00


2022-04-22 19:09:33 +08:00
## 📄 License
2022-10-14 09:35:13 +08:00
[MIT ](./LICENSE )
2022-04-22 19:09:33 +08:00
2023-06-12 18:20:54 +08:00
Copyright (c) 2022-present [pany ](https://github.com/pany-ang )