HaniBlindBox/.kiro/steering/tech.md
2026-01-03 14:47:28 +08:00

67 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 技术栈
## 前端 (honey_box/)
- 框架UniApp + Vue.js 2.x
- 构建工具HBuilderX
- UI组件uni-ui + 自定义组件
- 核心依赖:
- @lucky-canvas/uni - 抽奖转盘组件
- js-md5 - 请求签名
- uqrcodejs - 二维码生成
- eruda - 调试工具
## 后端 - 新版 (server/C#/HoneyBox/)
- 框架ASP.NET Core (.NET 10)
- ORMEntity Framework Core 8.0 + SQL Server
- 架构Clean Architecture (Api/Core/Infrastructure/Model)
- 依赖注入Autofac
- 认证JWT Bearer
- 日志Serilog
- 对象映射Mapster
- API文档Scalar (OpenAPI)
## 后端 - 旧版 (server/php/)
- 框架ThinkPHP 6.0
- PHP版本7.1+ (兼容 PHP 8.0)
- 数据库MySQL 5.7+
- 缓存Redis
- 文件存储:腾讯云 COS
## 数据库迁移脚本 (server/scripts/)
- Node.js 迁移脚本
- SQL 验证脚本
- 支持 MySQL → SQL Server 数据迁移
## 常用命令
### 前端开发
```bash
# 使用 HBuilderX 打开 honey_box 目录
# 运行到微信小程序开发者工具或浏览器
```
### .NET 后端
```bash
cd server/C#/HoneyBox
dotnet restore
dotnet build
dotnet run --project src/HoneyBox.Api
# API 默认运行在 http://localhost:5238
```
### PHP 后端 (旧版)
```bash
cd server/php
composer install
php think run
```
### 数据库迁移
```bash
cd server/scripts
npm install
node migrate_users.js
node migrate_goods.js
# 等其他迁移脚本
```