dev #1

Merged
ethan.chen merged 6 commits from dev into main 2026-01-09 02:37:06 +00:00
Owner
No description provided.
ethan.chen added 6 commits 2026-01-09 02:37:01 +00:00
- 更新 deno.json 添加 postgres 依赖
- 重构 db/index.ts 使用 PostgreSQL 连接和适配器
- 更新所有路由文件支持异步数据库操作
- 将 SQLite 语法转换为 PostgreSQL 语法
- 添加数据库迁移文档和 schema 文件
- 创建 db/init.ts 脚本,可自动创建数据库和表
- 更新 db/index.ts,应用启动时自动检查并创建表结构
- 添加 bun run init-db 命令用于初始化数据库
- 更新 README.md 添加数据库初始化说明
- 格式化 date 字段,只返回日期部分(YYYY-MM-DD),移除时间信息
添加 Gitea Actions 部署工作流
All checks were successful
Deploy to Server / deploy (push) Successful in 19s
9bcfbe0113
- 创建 deploy.yml 工作流文件,支持自动部署到宿主机
- 使用 runs-on: host 在宿主机上运行
- 自动同步文件、安装依赖并重启 PM2 应用
- 添加部署说明文档
添加媒体统计接口 /api/media/stats
All checks were successful
Deploy to Server / deploy (push) Successful in 5s
56d9736597
- 返回媒体总数、满分作品数、平均评分
- 按类型统计各类型作品数量
- 返回最新添加的5部作品
- 便于前端展示数据统计信息
ethan.chen merged commit f948a84eb9 into main 2026-01-09 02:37:06 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ethan.chen/score-backend#1