2021-03-04 21:31:33 +08:00
< div align = "center" > < a href = "https://github.com/anncwb/vue-vben-admin" > < img alt = "VbenAdmin Logo" width = "200" height = "200" src = "https://anncwb.github.io/anncwb/images/logo.png" > < / a > < br > < br >
2021-01-19 22:33:18 +08:00
2021-03-04 21:31:33 +08:00
[![license ](https://img.shields.io/github/license/anncwb/vue-vben-admin.svg )](LICENSE)
2021-01-19 22:33:18 +08:00
2021-03-04 21:31:33 +08:00
< h1 > Vue vben admin< / h1 >
< / div >
2021-01-19 22:33:18 +08:00
2021-03-04 21:31:33 +08:00
**English** | [中文 ](./README.zh-CN.md )
2021-01-19 22:33:18 +08:00
2021-03-04 21:31:33 +08:00
## Introduction
2021-01-19 22:33:18 +08:00
2024-01-25 13:16:38 +08:00
Vue Vben Admin is a free and open source middle platform/back-end template. Using the latest `vue3` , `vite4` , `TypeScript` and other mainstream technology, Vben is the out-of-the-box front-end solution for both production and learning purpose.
2020-10-15 00:48:58 +08:00
2024-01-25 13:16:38 +08:00
## Features
2020-10-15 00:48:58 +08:00
2024-01-25 13:16:38 +08:00
- **State-of-art Techinical Stack**: Using the latest and popular front-end technology such as Vue3/vite2
2021-03-04 21:31:33 +08:00
- **TypeScript**: Application-level JavaScript language
- **Theming**: Configurable themes
2024-01-25 13:16:38 +08:00
- **International**: Built-in i18n support
- **Response Mock**: Built-in response mock ability
- **Authority**: Built-in permission system based on dynamic routes.
- **Component**: Extracted and encapsulated components for various scenarios.
2020-10-10 00:08:54 +08:00
2022-04-29 18:39:41 +08:00
## Preview
2020-10-15 00:48:58 +08:00
2024-01-25 13:16:38 +08:00
- [vue-vben-admin ](https://vben.vvbin.cn/ ) - Full version (Chinese)
- [vue-vben-admin-gh-pages ](https://anncwb.github.io/vue-vben-admin/ ) - Full version (github hosted)
- [vben-admin-thin-next ](https://vben.vvbin.cn/thin/next/ ) - Simplified Version (Chinese)
- [vben-admin-thin-gh-pages ](https://anncwb.github.io/vben-admin-thin-next/ ) -Simplified Version (github hosted)
2020-09-28 21:00:36 +08:00
2021-03-04 21:31:33 +08:00
Test account: vben/123456
2020-10-11 00:05:29 +08:00
2020-09-28 21:00:36 +08:00
< p align = "center" >
2021-03-04 21:31:33 +08:00
< img alt = "VbenAdmin Logo" width = "100%" src = "https://anncwb.github.io/anncwb/images/preview1.png" >
< img alt = "VbenAdmin Logo" width = "100%" src = "https://anncwb.github.io/anncwb/images/preview2.png" >
< img alt = "VbenAdmin Logo" width = "100%" src = "https://anncwb.github.io/anncwb/images/preview3.png" >
2020-09-28 21:00:36 +08:00
< / p >
2021-03-04 21:31:33 +08:00
### Use Gitpod
2020-09-28 21:00:36 +08:00
2021-03-04 21:31:33 +08:00
Open the project in Gitpod (free online dev environment for GitHub) and start coding immediately.
2020-09-28 21:00:36 +08:00
2021-03-04 21:31:33 +08:00
[![Open in Gitpod ](https://gitpod.io/button/open-in-gitpod.svg )](https://gitpod.io/#https://github.com/anncwb/vue-vben-admin)
2020-09-28 21:00:36 +08:00
2021-03-04 21:31:33 +08:00
## Documentation
2020-09-28 21:00:36 +08:00
2022-11-15 08:12:15 +08:00
[Document ](https://doc.vvbin.cn/ )
2020-09-28 21:00:36 +08:00
2021-03-04 21:31:33 +08:00
## Preparation
2020-09-28 21:00:36 +08:00
2021-03-04 21:31:33 +08:00
- [node ](http://nodejs.org/ ) and [git ](https://git-scm.com/ ) - Project development environment
- [Vite ](https://vitejs.dev/ ) - Familiar with vite features
- [Vue3 ](https://v3.vuejs.org/ ) - Familiar with Vue basic syntax
- [TypeScript ](https://www.typescriptlang.org/ ) - Familiar with the basic syntax of `TypeScript`
- [Es6+ ](http://es6.ruanyifeng.com/ ) - Familiar with es6 basic syntax
- [Vue-Router-Next ](https://next.router.vuejs.org/ ) - Familiar with the basic use of vue-router
2023-07-06 15:00:38 +08:00
- [Ant-Design-Vue ](https://antdv.com/docs/vue/introduce-cn/ ) - ui basic use
2021-03-04 21:31:33 +08:00
- [Mock.js ](https://github.com/nuysoft/Mock ) - mockjs basic syntax
2020-10-10 00:08:54 +08:00
2021-03-04 21:31:33 +08:00
## Install and use
2020-09-28 21:00:36 +08:00
2021-03-04 21:31:33 +08:00
- Get the project code
2020-09-28 21:00:36 +08:00
2021-01-19 22:33:18 +08:00
```bash
2021-03-04 21:31:33 +08:00
git clone https://github.com/anncwb/vue-vben-admin.git
```
2020-09-28 21:00:36 +08:00
2024-01-25 13:16:38 +08:00
- Install dependencies
2020-09-28 21:00:36 +08:00
2021-03-04 21:31:33 +08:00
```bash
cd vue-vben-admin
2020-09-28 21:00:36 +08:00
2021-11-08 09:24:22 +08:00
pnpm install
2020-09-28 21:00:36 +08:00
```
2021-03-04 21:31:33 +08:00
- run
2020-09-28 21:00:36 +08:00
```bash
2021-11-08 09:24:22 +08:00
pnpm serve
2020-09-28 21:00:36 +08:00
```
2021-03-04 21:31:33 +08:00
- build
2020-09-28 21:00:36 +08:00
```bash
2021-11-08 09:24:22 +08:00
pnpm build
2020-09-28 21:00:36 +08:00
```
2023-07-06 13:55:41 +08:00
- docker
### The dockerFile is located in the project root directory and supports differential deployment
#### build image
```bash
docker build -t vue-vben-admin .
```
2024-01-25 13:16:38 +08:00
#### Use environment variables to achieve differentiated container deployment. Specify service endpoint by assigning `VG_BASE_URL`. In the following example, `http://localhost:3333` is used as the back-end service address and the container is mapped to port `6666`:
2023-07-06 13:55:41 +08:00
```bash
docker run --name vue-vben-admin -d -p 6666:80 -e VG_BASE_URL=http://localhost:3333 vue-vben-admin
```
2024-01-25 13:16:38 +08:00
Then you can navigate to `http://localhost:6666`
2023-07-06 13:55:41 +08:00
2021-03-04 21:31:33 +08:00
## Change Log
2020-09-28 21:00:36 +08:00
2021-03-04 21:31:33 +08:00
[CHANGELOG ](./CHANGELOG.zh_CN.md )
2020-09-28 21:00:36 +08:00
2021-03-04 21:31:33 +08:00
## Project
2020-09-28 21:00:36 +08:00
2021-03-04 21:31:33 +08:00
- [vue-vben-admin ](https://github.com/anncwb/vue-vben-admin ) - full version
- [vue-vben-admin-thin-next ](https://github.com/anncwb/vben-admin-thin-next ) - Simplified version
2020-09-28 21:00:36 +08:00
2021-03-04 21:31:33 +08:00
## How to contribute
2020-09-28 21:00:36 +08:00
2024-01-25 13:16:38 +08:00
You are very welcome to join! [Raise an issue](https://github.com/anncwb/vue-vben-admin/issues/new/choose) or submit a Pull Request。
2020-10-10 00:08:54 +08:00
2021-03-04 21:31:33 +08:00
**Pull Request:**
2020-10-10 00:08:54 +08:00
2021-03-04 21:31:33 +08:00
1. Fork code!
2. Create your own branch: `git checkout -b feat/xxxx`
3. Submit your changes: `git commit -am 'feat(function): add xxxxx'`
4. Push your branch: `git push origin feat/xxxx`
5. submit`pull request`
2020-09-28 21:00:36 +08:00
2021-03-04 21:31:33 +08:00
## Git Contribution submission specification
2021-01-19 22:33:18 +08:00
2021-03-04 21:31:33 +08:00
- reference [vue ](https://github.com/vuejs/vue/blob/dev/.github/COMMIT_CONVENTION.md ) specification ([Angular](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-angular))
2021-01-19 22:33:18 +08:00
- `feat` Add new features
2021-03-04 21:31:33 +08:00
- `fix` Fix the problem/BUG
2024-01-25 13:16:38 +08:00
- `style` Modify the code style/format that does not affect the feature
2021-01-19 22:33:18 +08:00
- `perf` Optimization/performance improvement
- `refactor` Refactor
- `revert` Undo edit
- `test` Test related
- `docs` Documentation/notes
2021-03-04 21:31:33 +08:00
- `chore` Dependency update/scaffolding configuration modification etc.
2021-01-19 22:33:18 +08:00
- `workflow` Workflow improvements
- `ci` Continuous integration
2021-03-04 21:31:33 +08:00
- `types` Type definition file changes
- `wip` In development
2021-01-19 22:33:18 +08:00
2021-03-04 21:31:33 +08:00
## Related warehouse
2021-01-19 22:33:18 +08:00
2024-01-25 13:16:38 +08:00
If these plugins are helpful to you, you can show support by leaving a star!
2021-01-19 22:33:18 +08:00
2021-03-04 21:31:33 +08:00
- [vite-plugin-mock ](https://github.com/anncwb/vite-plugin-mock ) - Used for local and development environment data mock
- [vite-plugin-html ](https://github.com/anncwb/vite-plugin-html ) - Used for html template conversion and compression
- [vite-plugin-compression ](https://github.com/anncwb/vite-plugin-compression ) - Used to pack input .gz|.brotil files
2021-03-10 22:23:19 +08:00
- [vite-plugin-svg-icons ](https://github.com/anncwb/vite-plugin-svg-icons ) - Used to quickly generate svg sprite
2021-01-19 22:33:18 +08:00
## Browser support
2021-03-04 21:31:33 +08:00
The `Chrome 80+` browser is recommended for local development
2021-01-19 22:33:18 +08:00
2024-01-25 13:16:38 +08:00
Support modern browsers, doesn't include IE
2020-10-15 21:12:38 +08:00
2020-10-16 22:03:44 +08:00
| [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt=" Edge" width="24px" height="24px" /> ](http://godban.github.io/browsers-support-badges/ )</ br > IE | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt=" Edge" width="24px" height="24px" /> ](http://godban.github.io/browsers-support-badges/ )</ br > Edge | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" /> ](http://godban.github.io/browsers-support-badges/ )</ br > Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" /> ](http://godban.github.io/browsers-support-badges/ )</ br > Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" /> ](http://godban.github.io/browsers-support-badges/ )</ br > Safari |
| :-: | :-: | :-: | :-: | :-: |
| not support | last 2 versions | last 2 versions | last 2 versions | last 2 versions |
2021-03-04 21:31:33 +08:00
## Maintainer
2023-10-31 17:57:46 +08:00
[@Vben ](https://github.com/anncwb ) [@Jinmao ](https://github.com/jinmao88 )
2021-03-04 21:31:33 +08:00
2023-10-25 22:22:12 +08:00
## Thanks
2021-03-04 21:31:33 +08:00
2023-10-25 22:22:12 +08:00
< img src = "https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.png" alt = "JetBrains Logo (Main) logo." height = "120" >
2021-03-04 21:31:33 +08:00
2023-10-31 17:57:46 +08:00
## Star History Chart
[![Star History Chart ](https://api.star-history.com/svg?repos=vbenjs/vue-vben-admin&type=Date )](https://star-history.com/#vbenjs/vue-vben-admin& Date)
2020-09-28 21:00:36 +08:00
2021-03-04 21:31:33 +08:00
## License
2020-09-28 21:00:36 +08:00
2021-03-04 21:31:33 +08:00
[MIT © Vben-2020 ](./LICENSE )