Template
1
0
mirror of https://github.com/un-pany/v3-admin-vite.git synced 2025-04-21 19:39:19 +08:00
v3-admin-vite/README.md

159 lines
4.9 KiB
Markdown
Raw Normal View History

2022-10-13 17:44:39 +08:00
<div align="center">
2022-11-07 17:44:48 +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
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
```
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-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
![preview1.png](./src/assets/docs/preview1.png)
![preview2.png](./src/assets/docs/preview2.png)
![preview3.png](./src/assets/docs/preview3.png)
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>
2023-01-10 17:47:31 +08:00
## 💕 Thanks for the sponsorship (the cost of sponsorship was used to send red envelopes in the group~)
| Name | Avatar |
| -------------------------------------------------- | --------------------------------------------------------------------------------------------- |
| <a href="https://github.com/a3305278">a3305278</a> | <img src="https://avatars.githubusercontent.com/u/30458650?v=4" width="64px" height="64px" /> |
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)
2022-10-12 17:30:08 +08:00
## Group
2022-10-24 14:14:58 +08:00
QQ group1014374415 (left) && add me on WeChatInvite you to join WeChat group (right)
2022-04-22 19:09:33 +08:00
2022-10-14 09:35:13 +08:00
![qq.png](./src/assets/docs/qq.png)
![wechat.png](./src/assets/docs/wechat.png)
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)