Files
score-backend/README.md
2026-01-08 14:30:11 +08:00

30 lines
628 B
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.
## 安装依赖
```bash
bun install
```
## 运行项目
```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