8000 GitHub - eencoffee/cs.clean
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

eencoffee/cs.clean

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLEAN

Exercise: To-Do List API

An application with the following layers:

  • Entities (Domain Layer) → Pure business logic, independent of frameworks.
  • Use Cases (Application Layer) → Orchestrates business logic and defines application behavior.
  • Adapters (Interface Layer) → Controllers, presenters, and UI elements.
  • Infrastructure (Data Layer) → External services (database, APIs, frameworks).
./
│   ├── LICENSE
│   ├── README.md
│   ├── TodoApp.sln
│   ├── .gitignore
│   ├── TodoApp
│   │   ├── TodoApp.Domain                           # Entities and Interfaces
│   │   │   ├── TodoApp.Domain.csproj
│   │   │   ├── Entities
│   │   │   │   ├── TodoItem.cs
│   │   │   ├── Interfaces
│   │   │   │   ├── TodoRepository.cs
│   │   ├── TodoApp.Infrastructure                   # Data Access, External Services
│   │   │   ├── Repositories
│   │   │   │   ├── TodoRepository.cs
│   │   │   ├── TodoApp.Infrastructure.csproj
│   │   ├── TodoApp.Application                      # Business Logic (Use Cases)
│   │   │   ├── TodoApp.Application.csproj
│   │   │   ├── Services
│   │   │   │   ├── TodoService.cs
│   │   ├── TodoApp.Api                              # Presentation Layer (Controllers)
│   │   │   ├── appsettings.json
│   │   │   ├── TodoApp.Api.csproj
│   │   │   ├── Properties
│   │   │   │   ├── launchSettings.json
│   │   │   ├── appsettings.Development.json
│   │   │   ├── Controllers
│   │   │   │   ├── TodoController.cs
│   │   │   ├── Program.cs
│   │   ├── TodoApp.Tests                           # Unit & Integration Tests
│   │   │   ├── TodoApp.Tests.csproj
│   │   │   ├── TodoRepositoryTests.cs
│   │   │   ├── TodoServiceTests.cs

Test

cd TodoApp/TodoApp.Tests
dotnet test

Run

cd TodoApp/TodoApp.Api
dotnet run

View

http://localhost:5205/swagger

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0