Replies: 1 comment
-
sounds good to me, lets do this |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Project Structure Proposal: Improved Maintainability in .NET
Overview
To improve the maintainability and scalability of the project, I propose the following structured folder organization and naming convention. This structure is designed to make the project modular, developer-friendly, and aligned with best practices in .NET development.
Proposed Folder Structure
Main Project (
src
)The
src
directory will contain the main application code. The project name should represent its functionality or domain. For example:src/
|── DevsWhoRun.Api/
|── Configurations/
|── Migrations/
|── Modules/
| ────Auth/
| ──── Users/
|── Properties/
|── appsettings.json
|── appsettings.Development.json
|── Program.cs
|── Dockerfile
Detailed Folder Description
Configurations/
: Contains middleware setup, dependency injection configurations, and other application-wide settings.Migrations/
: Stores Entity Framework Core database migration files.Modules/
: Feature-based module organizationAuth/
: Authentication and authorization-related componentsUsers/
: User management-related componentsProperties/
: Assembly metadata and configurationappsettings.json
: Centralized configuration fileappsettings.Development.json
: Environment-specific configurationProgram.cs
: Application entry pointDockerfile
: Docker containerization configurationBenefits of the Proposed Structure
Modularity
Auth
,Users
) is self-contained within theModules
folder.Maintainability
src
) and tests (tests
).Scalability
Standardization
Naming Conventions
Projects
DevsWhoRun.Api
DevsWhoRun.IntegrationTests
DevsWhoRun.UnitTests
Folders
Configurations
,Modules
)Modules
should correspond to specific features or areas of functionality (e.g.,Auth
,Users
)Test Projects Structure
tests/
├── DevsWhoRun.UnitTests/
├── DevsWhoRun.IntegrationTests/
Additional Notes
Beta Was this translation helpful? Give feedback.
All reactions