2022-10-13 17:44:39 +08:00
< div align = "center" >
2022-10-14 09:35:13 +08:00
< img alt = "V3-Admin-Vite-Logo" width = "120" height = "120" src = "./src/assets/layout/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
2022-10-12 17:30:08 +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
2022-10-12 17:30:08 +08:00
- Vue-Cli 5.x: [v3-admin ](https://github.com/un-pany/v3-admin )
- Electron desktop: [v3-electron-vite ](https://github.com/un-pany/v3-electron-vite )
2022-04-21 18:45:27 +08:00
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
- **Annotation**: Each configuration item is written with as detailed comments as possible
- **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
2022-10-12 17:30:08 +08:00
- **User management**: log in, log out of the demo
- **Authority management**: Built-in page permissions (dynamic routing), instruction permissions, permission functions
2022-10-24 14:14:58 +08:00
- **Multiple Environments**: Development, Staging, Production
- **Multiple themes**: Normal, Dark, Dark Blue, theme modes
- **Error page**: 403, 404
2022-10-12 17:30:08 +08:00
- **Dashboard**: Display different Dashboard pages according to different users
2022-10-24 14:14:58 +08:00
- **Other functions**: SVG, Dynamic Sidebar, Dynamic Breadcrumb Navigation, Tabbed Navigation, Screenfull, Adaptive Shrink Sidebar
2022-04-23 10:09:03 +08:00
2022-10-12 17:30:08 +08:00
## 📚 Document
2022-04-23 10:09:03 +08:00
2022-10-12 17:30:08 +08:00
[Chinese documentation ](https://juejin.cn/post/7089377403717287972 )
2022-04-23 10:09:03 +08:00
2022-10-12 17:30:08 +08:00
## Gitee repository
2022-04-22 19:09:33 +08:00
[Gitee ](https://gitee.com/un-pany/v3-admin-vite )
2022-10-12 17:30:08 +08:00
## Online preview
2022-04-22 19:09:33 +08:00
2022-10-12 17:30:08 +08:00
| Location | account | Link |
| ------------ | ------------------- | ----------------------------------------------- |
| github-pages | `admin` or `editor` | [Link ](https://un-pany.github.io/v3-admin-vite ) |
2022-04-22 19:09:33 +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
3. node version 16+
4. pnpm version 7.x
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
```
2022-10-12 17:30:08 +08:00
## 🔧 Code formatting check
2022-04-22 19:09:33 +08:00
```bash
pnpm lint
```
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-10-14 10:02:09 +08:00
## 💕 Contributors
Thanks you to all the contributors!
< 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-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
2022-10-17 17:14:34 +08:00
Copyright (c) 2022 [pany ](https://github.com/pany-ang )