diff --git a/Documents/Project RULE 10.md b/Documents/Project RULE 10.md index 1b58abd..e1f3934 100644 --- a/Documents/Project RULE 10.md +++ b/Documents/Project RULE 10.md @@ -1,5 +1,28 @@ # Coding RULE 10 +## 목차 +[1️⃣ 프로젝트 구조](#1-프로젝트-구조) + +[2️⃣ 코드 스타일 가이드](#2-코드-스타일-가이드) + +[3️⃣ Git 규칙](#3-git-규칙) + +[4️⃣ 작업 프로세스](#4-작업-프로세스) + +[5️⃣ 협업 및 커뮤니케이션](#5-협업-및-커뮤니케이션) + +[6️⃣ 테스트 및 품질 관리](#6-테스트-및-품질-관리) + +[7️⃣ 보안 및 인증 관련](#7-보안-및-인증-관련) + +[8️⃣ 배포 및 운영](#8-배포-및-운영) + +[9️⃣ 공통 코드 및 재사용 정책](#9-공통-코드-및-재사용-정책) + +[🔟 예외 처리 및 로깅](#10-예외-처리-및-로깅) + +--- + ## 1️⃣ 프로젝트 구조 ### 🔹 MVVM 구조 #### Model @@ -35,12 +58,14 @@ namespace Front.Program.Pages; - 하지만 한 View에서 여러 컴포넌트가 하나의 상태를 공유해야 할 경우에는 Scoped로 등록 - Service는 Scoped으로 등록 - Service는 ViewModel과 다르게 여러 컴포넌트에서 같은 Service를 사용해야 하는 경우가 많기 때문에 Scoped으로 등록 + --- ## 2️⃣ 코드 스타일 가이드 - [C# 코드 스타일 권장 사항 (Microsoft Docs)]("https://learn.microsoft.com/ko-kr/dotnet/csharp/fundamentals/coding-style/coding-conventions")을 따른다. - 클래스, 인터페이스, 메서드, 변수, 상수 등 모든 명명 및 스타일은 위 문서를 기준으로 작성한다. - **필요**시 `.editorconfig` 파일을 통해 프로젝트 전체에 스타일 자동 적용 도구를 사용할 수 있다. + --- ## 3️⃣ Git 규칙 @@ -98,6 +123,7 @@ namespace Front.Program.Pages; - 최소 1인 이상의 리뷰어의 코드 리뷰 후 dev 브랜치로 머지 - 충돌이 없고 빌드가 통과된 경우에만 머지 허용 - PR 본문에 해당 작업의 목적과 결과 요약 작성 + --- ## 4️⃣ 작업 프로세스 @@ -118,10 +144,12 @@ namespace Front.Program.Pages; ## 5️⃣ 협업 및 커뮤니케이션 - 추후 팀이 늘어남에 따라 추가 예정 + --- ## 6️⃣ 테스트 및 품질 관리 - 추후 프로젝트의 규모에 따라 추가 예정 + --- ## 7️⃣ 보안 및 인증 관련 @@ -136,7 +164,6 @@ namespace Front.Program.Pages; - API 서버와 클라이언트 서버의 도메인이 다를 경우 CORS 설정을 통해 허용된 도메인에서만 요청을 받을 수 있도록 한다. - CORS 설정은 API 서버에서 관리하며, 클라이언트에서는 별도로 설정하지 않는다. - --- ## 8️⃣ 배포 및 운영 diff --git a/Front.csproj b/Front.csproj index 4110bed..169a8d5 100644 --- a/Front.csproj +++ b/Front.csproj @@ -13,5 +13,24 @@ + + + + + + + + + + <_ContentIncludedByDefault Remove="Pages\Counter.razor" /> + <_ContentIncludedByDefault Remove="Pages\Home.razor" /> + <_ContentIncludedByDefault Remove="Pages\Weather.razor" /> + + + + + + + diff --git a/Layout/MainLayout.razor b/Program/Layout/MainLayout.razor similarity index 100% rename from Layout/MainLayout.razor rename to Program/Layout/MainLayout.razor diff --git a/Layout/MainLayout.razor.css b/Program/Layout/MainLayout.razor.css similarity index 100% rename from Layout/MainLayout.razor.css rename to Program/Layout/MainLayout.razor.css diff --git a/Layout/NavMenu.razor b/Program/Layout/NavMenu.razor similarity index 100% rename from Layout/NavMenu.razor rename to Program/Layout/NavMenu.razor diff --git a/Layout/NavMenu.razor.css b/Program/Layout/NavMenu.razor.css similarity index 100% rename from Layout/NavMenu.razor.css rename to Program/Layout/NavMenu.razor.css diff --git a/Pages/Counter.razor b/Program/Views/Counter.razor similarity index 100% rename from Pages/Counter.razor rename to Program/Views/Counter.razor diff --git a/Pages/Home.razor b/Program/Views/Home.razor similarity index 95% rename from Pages/Home.razor rename to Program/Views/Home.razor index 9001e0b..9dde77b 100644 --- a/Pages/Home.razor +++ b/Program/Views/Home.razor @@ -5,3 +5,5 @@

Hello, world!

Welcome to your new app. + +15 diff --git a/Pages/Weather.razor b/Program/Views/Weather.razor similarity index 100% rename from Pages/Weather.razor rename to Program/Views/Weather.razor diff --git a/_Imports.razor b/_Imports.razor index 6e0e2c3..9e75e1b 100644 --- a/_Imports.razor +++ b/_Imports.razor @@ -7,4 +7,4 @@ @using Microsoft.AspNetCore.Components.WebAssembly.Http @using Microsoft.JSInterop @using Front -@using Front.Layout +@using Front.Program.Layout