https://github.com/airpowerteam/airpoweruniappstarter
🔥🔥🔥[开箱即用] AirPower的Uniapp开发宿主项目。AirPower4T 是一个基于 Vue3 TypeScript Element Plus Vite 的开发基础库,使用面向对象、装饰器、Hooks等开发模式,内置了数据模型转换、表格表单装饰器配置、加解密和编码解码、网络请求、权限管理等常见后台功能以及页面组件,助力后台类系统的前端开发效率,同时保障了优雅的代码质量。
https://github.com/airpowerteam/airpoweruniappstarter
app frontend oop typescript uniapp
Last synced: 3 months ago
JSON representation
🔥🔥🔥[开箱即用] AirPower的Uniapp开发宿主项目。AirPower4T 是一个基于 Vue3 TypeScript Element Plus Vite 的开发基础库,使用面向对象、装饰器、Hooks等开发模式,内置了数据模型转换、表格表单装饰器配置、加解密和编码解码、网络请求、权限管理等常见后台功能以及页面组件,助力后台类系统的前端开发效率,同时保障了优雅的代码质量。
- Host: GitHub
- URL: https://github.com/airpowerteam/airpoweruniappstarter
- Owner: AirPowerTeam
- License: mit
- Created: 2023-08-28T02:54:16.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-20T09:31:19.000Z (9 months ago)
- Last Synced: 2025-03-30T20:30:55.229Z (7 months ago)
- Topics: app, frontend, oop, typescript, uniapp
- Language: TypeScript
- Homepage: https://service.hamm.cn
- Size: 95.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AirPowerUniappStarter
### 写在前面
你当前正在查看基于 ```AirPower``` 基础库的 宿主项目的代码, 我们使用的是 ```Vite``` 构建, 包管理使用的是 ```yarn```, 请先安装前叙的相关工具后继续接下来的操作 :)
### 一、初始化仓库
> 建议windows开发者使用 ```git bash``` 不要使用windows自带的拉垮的 ```cmd``` ```powershell``` 等。否则接下来的脚本可能出现问题,你只能通过自己手动去操作。
```shell
git clone https://github.com/HammCn/AirPowerUniappStarter.git &&
cd AirPowerUniappStarter/src &&
git clone -b uniapp https://github.com/HammCn/AirPower4T.git airpower && cd ../ &&
yarn
```
### 二、修改环境变量
在 ```main.ts``` 中按需修改配置
```typescript
const rootUrl = 'https://service.hamm.cn/'
AirConfig.apiUrl = `${rootUrl}api/`
AirConfig.staticUrl = `${rootUrl}upload/`
```
### 三、启动和打包
使用 HBuilder 开发者工具导入这个项目,然后编译运行即可。
### 四、其他命令
```shell
#使用标准commit模板
yarn c
#更新项目和AirPower
yarn u
#查看Git格式化日志
yarn l
```
### And now, enjoy your coding!