CLAUDE.md 4.5 KB

CLAUDE.md

Project Overview

bitForum - Clean Architecture 기반 커뮤니티 플랫폼 (.NET 10.0)

Solution Structure

Admin/           → Razor Pages 관리자 패널 (https://localhost:5000)
Web.Api/         → RESTful Minimal API (https://localhost:4000)
Application/     → CQRS Handler (MediatR)
Domain/          → Entity, ValueObject
Infrastructure/  → DB, Auth, Storage, Email
SharedKernel/    → AppSettings, Result Pattern

Code Style Rules

  • PK/ID 변수명: memberID, userID (camelCase + 대문자 ID)
  • if 문은 반드시 {} 사용
  • Tuple 속성은 각 필드를 별도 줄에 작성
  • 외부 라이브러리 대신 순수 C# 우선 (FluentValidation 등 사용 안 함)
  • 배열 패턴 사용 (체이닝 || 대신)
  • Handler에서 직접 유효성 검사 (Data Annotation 사용 안 함)
  • 파일 내용의 마지막 줄 제거
  • EF Core 문은 항상 한 줄로 작성(단, 객체나 data 사용 시 여러 줄로 표시)

Architecture Rules

  • Domain layer has ZERO external dependencies
  • Application layer defines interfaces, Infrastructure implements them
  • All database access goes through EF Core DbContext (no repository pattern)
  • Use Mediator for all command/query handling
  • API layer is thin — endpoint definitions only

Code Conventions

Patterns We Use