Files
photography/CLAUDE.md
xujiang 386666660f
Some checks failed
部署后端服务 / 🚀 构建并部署 (push) Failing after 7m20s
feat: 重构CLAUDE.md文档体系,实现模块化轻量级设计
- 重构根目录CLAUDE.md为项目总览(60行精简版)
- 细化backend模块CLAUDE.md为开发指南
- 新增各子模块CLAUDE.md文件:
  - api/desc/ - API定义模块
  - internal/handler/ - 请求处理器
  - internal/logic/ - 业务逻辑层
  - internal/model/ - 数据模型层
  - internal/middleware/ - 中间件层
  - internal/svc/ - 服务上下文
  - configs/ - 配置目录
  - deploy/ - 部署配置
  - pkg/ - 公共库
  - scripts/ - 工具脚本
  - configs/sql/ - SQL脚本
- 修复PostgreSQL SSL配置参数
- 清理旧的backend-old目录

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-16 13:16:01 +08:00

62 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.

# Photography Portfolio - 项目总览
> 📍 这是一个模块化摄影作品集项目所有模块都有独立的CLAUDE.md文件
## 🎯 项目结构
```
photography/
├── frontend/ # 🎨 前端Next.js应用
├── admin/ # 📋 管理后台
├── backend/ # 🔧 Go后端API
├── docs/deployment/ # 🚀 部署配置
├── .gitea/workflows/ # ⚙️ CI/CD流程
├── ui/ # 🎨 UI备份
└── scripts/ # 🛠️ 工具脚本
```
## 🚀 快速开始
### 选择工作模块
```bash
# 进入对应模块目录后查看模块CLAUDE.md
# 前端开发
cd frontend && cat CLAUDE.md
# 后端开发
cd backend && cat CLAUDE.md
# 部署配置
cd docs/deployment && cat CLAUDE.md
```
### 常用命令
```bash
# 前端
cd frontend && make dev
# 后端
cd backend && make run
# 部署
cd docs/deployment && ./deploy.sh
```
## 📋 模块指南
| 模块 | 用途 | 入口文件 |
|---|---|---|
| `frontend/` | Next.js前端 | `frontend/CLAUDE.md` |
| `admin/` | 管理后台 | `admin/CLAUDE.md` |
| `backend/` | Go API服务 | `backend/CLAUDE.md` |
| `docs/deployment/` | 服务器部署 | `docs/deployment/CLAUDE.md` |
## 🔗 项目地址
- **网站**: https://photography.iriver.top
- **仓库**: Gitea自动部署
## 🎯 工作原则
1. **模块化**: 每个目录独立工作
2. **轻量级**: 只关注当前模块
3. **文档化**: 每个模块都有专属指导