Files
email-unlimit/GEMINI.md
T

45 lines
1.3 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.
### 项目概述
Email Unlimited 是一个前后端分离的临时邮箱服务:
- `server/`Rust + Axum + SeaORM,提供 HTTP API、SMTP 收信、WebSocket 推送和后台管理接口。
- `frontend/`Vue 3 + Pinia + Vite 用户端,提供认证、邮箱、收件箱和积分功能。
- `admin/`React + TypeScript + Vite + TanStack Query + shadcn/ui 管理后台。
- 数据服务:MySQL / PostgreSQL / SQLite 与 Redis。
- 部署:根目录 Docker Compose 文件统一构建并运行 Rust 服务、Vue 用户端、React 管理端、数据库、Redis 与 Nginx。
### 构建与运行
```powershell
cd server
cargo run
```
```powershell
cd frontend
pnpm install
pnpm dev
pnpm build
```
```powershell
cd admin
pnpm install
pnpm dev
pnpm build
```
```powershell
docker compose up -d --build
docker compose -f docker-compose.full.yml up -d --build
```
### 开发约定
1. 在终端执行命令时使用适合 Windows PowerShell 的命令。
2. 始终使用中文回答。
3. 保留已有打印语句和有业务含义的注释,不做无关改动。
4. 前端统一使用 pnpm,不使用 npm。
5. 嵌套环境变量使用双下划线,例如 `AUTH__JWT_SECRET``DATABASE__HOST`
6. 积分规则由数据库和管理后台维护,不添加 `CREDIT__*` 环境变量;代码内默认值只用于首次初始化或管理员恢复默认。