Comments (3)
Code without external dependencies - core, but more likely you should create a shared library to keep reusable code and then link this as a dependency.
Something like this:
From my perspective - I'm splitting Core into Contracts, Domain, Messages. Infrastructure into Persistence, Application, Application.Setup, Message broker. Web into UI, API(ie. API, ReadApi, PresentationApi).
Core
- Contracts - basic models, DTOs, the definition of endpoints for API.
- Messages - models as above but for Message Broker.
- Domain - domain models that hold business logic in entities and value objects without EXTERNAL implementation. Just domain, root objects, etc.
Infrastructure
- Application - implementation of business logic, CQRS that can handle commands and change domain by commands which base on external resources(other API).
- Application.Setup - just setup to run a whole application like Autofac setup.
- Persistence - mapping of views, tables from DB
- Message Broker - CQRS implementation of handlers and system that run message broker service (write mode)
Web
- API - POST Actions that invoke CQRS and then message broker(yep, next CQRS system)
- ReadAPI - internal/external definition of data that your or any system can get
- PresentationApi - internal read data for UI.
I just want to mention - most shareable code like CQRS, DDD base implementation that is the root of everything is from a shared library. You will not find this in the description above, but if you want to place this somewhere it would be core and shared folder.
from cleanarchitecture.
I just wanted to know how well you''ll be able to organize NopCommerce files using this CleanArchitecture Template.
from cleanarchitecture.
I'd agree with @Xeinaemm
from cleanarchitecture.
Related Issues (20)
- Hello, I don't understand the core meaning of this project HOT 1
- Infrastructure implementation details are leaking into Application layer HOT 3
- Error when using EF Core Power Tools HOT 2
- Update to target latest net8 for Nov 2023 release HOT 1
- Api.Contracts project HOT 2
- Two sets of templates - Back end focused (Current [End Points]) and Front end focused (Blazor Web App) HOT 2
- Template Generated Solution Will not Build or Update HOT 2
- Please support domain event publishing of 'EntityBase<TId>' HOT 3
- Template Doesn't Work and Breaks Other Projects HOT 1
- Open the Discussions area in Github area so people can discuss the template and the whys
- Why is this repo using AutoFac instead of .NET's own DI infrastructure? HOT 3
- Handling Third-Party Authentication and Role Synchronization in DDD and Clean Architecture HOT 1
- GetContributorByIdRequest - Filename should probably match the classname
- Why is the implementation of the DeleteContributorService in the core layer? HOT 2
- Test case ReturnsTwoContributors() fails HOT 6
- Replace Autofac with Vanilla dotnet DI HOT 3
- Renaming Enhacement in Web Project. HOT 3
- Update Sample to Latest Version of Template HOT 4
- 404 when launching the project HOT 2
- Error when launching the newly created project from template HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cleanarchitecture.