feat: 项目从deno迁移回使用bun

This commit is contained in:
ethan.chen
2026-01-08 14:30:11 +08:00
parent 2b5b2f1d97
commit 02ebb4c648
10 changed files with 101 additions and 152 deletions

View File

@@ -1,3 +1,29 @@
## 安装依赖
```bash
bun install
```
deno task start
## 运行项目
```bash
# 开发模式(带热重载)
bun run dev
# 生产模式
bun run start
```
## 环境变量
配置以下环境变量:
- `PORT`: 服务器端口(默认: 8000
- `AUTH_SECRET`: JWT 密钥(默认: it-is-a-secret
- `DATABASE_URL`: PostgreSQL 连接字符串
- 或使用独立变量:
- `DB_USER`: 数据库用户(默认: postgres
- `DB_PASSWORD`: 数据库密码(默认: postgres
- `DB_HOST`: 数据库主机(默认: localhost
- `DB_PORT`: 数据库端口(默认: 5432
- `DB_NAME`: 数据库名称(默认: media