# berry-admin
**Repository Path**: yangxy1234/berry-admin
## Basic Information
- **Project Name**: berry-admin
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 1
- **Created**: 2024-11-04
- **Last Updated**: 2024-11-04
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# berry-admin
berry-admin
## 项目简介
berry-admin基于vue3+vite+typescript+pina+axios+elePlus构建的web后台管理模板,基于element-plus,使用pina进行状态管理,使用axios进行网络请求,使用vite进行打包,使用vue-router进行路由管理,使用vue-i18n进行国际化。
## 软件架构
Vue3+Vite+TypeScript+Pina+Aixos+elePlus
## 环境准备
| 环境 | 名称版本 | 下载地址 |
| -------------------- | :----------------------------------------------------------- | ------------------------------------------------------------ |
| **开发工具** | VSCode | [下载](https://code.visualstudio.com/Download) |
| **运行环境** | Node ≥18 (其中 20.6.0 版本不可用) | [下载](http://nodejs.cn/download)
## 项目启动
```bash
# 克隆代码
git clone https://gitee.com/lijson123/berry-admin.git
# 切换目录
cd berry-admin
# 安装 pnpm
npm install pnpm -g
yarn / pnpm install
# 设置镜像源(可忽略)
yarn config set registry https://registry.npmmirror.com
or
pnpm config set registry https://registry.npmmirror.com
```
```bash
# 项目打包
pnpm run build
or
yarn build
# 上传文件至远程服务器
将本地打包生成的 dist 目录下的所有文件拷贝至服务器的 /usr/share/nginx/html 目录。
# nginx.cofig 配置
server {
listen 80;
server_name localhost;
location /API/ {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /API/index.html =404;
}
# 反向代理配置
location /prod-api/ {
proxy_pass http://xxx.xxx.xxx/;
}
}
```
## 本地Mock
项目同时支持在线和本地 Mock 接口,默认使用线上接口,如需替换为 Mock 接口,修改文件 `.env.development` 的 `VITE_MOCK_DEV_SERVER` 为 `true` **即可**。