{"id":13553034,"url":"https://github.com/bertilmuth/modern-clean-architecture","last_synced_at":"2025-08-27T16:29:37.335Z","repository":{"id":43034687,"uuid":"392299329","full_name":"bertilmuth/modern-clean-architecture","owner":"bertilmuth","description":"Maintainable software without effort.","archived":false,"fork":false,"pushed_at":"2021-09-16T19:17:18.000Z","size":269,"stargazers_count":35,"open_issues_count":0,"forks_count":10,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-04T00:32:49.061Z","etag":null,"topics":["clean-architecture","event-driven","java","spring","spring-boot"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bertilmuth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-08-03T11:50:12.000Z","updated_at":"2024-08-17T05:44:12.000Z","dependencies_parsed_at":"2022-09-01T22:02:45.791Z","dependency_job_id":null,"html_url":"https://github.com/bertilmuth/modern-clean-architecture","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertilmuth%2Fmodern-clean-architecture","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertilmuth%2Fmodern-clean-architecture/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertilmuth%2Fmodern-clean-architecture/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertilmuth%2Fmodern-clean-architecture/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bertilmuth","download_url":"https://codeload.github.com/bertilmuth/modern-clean-architecture/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246939195,"owners_count":20857916,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clean-architecture","event-driven","java","spring","spring-boot"],"created_at":"2024-08-01T12:02:16.006Z","updated_at":"2025-04-03T04:31:50.318Z","avatar_url":"https://github.com/bertilmuth.png","language":"Java","funding_links":[],"categories":["Java"],"sub_categories":[],"readme":"# modern-clean-architecture\n[![Gitter](https://badges.gitter.im/requirementsascode/community.svg)](https://gitter.im/requirementsascode/community?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge)\n\nCreate services with a [clean architecture](https://blog.cleancoder.com/uncle-bob/2012/08/13/the-clean-architecture.html) with significantly less effort necessary than usual.\n\nThe main idea of Clean Architecture: Domain code and use cases are independent of frameworks, UI, the database and external services.\n\nSo building an application in a Clean Architecture style has a positive effect on maintainability:\n* You can test domain code and use cases without the framework, UI and infrastructure.\n* Technology decisions can change without affecting the domain code. And vice versa. It is even possible to switch to a new framework with limited effort.\n\nModern clean architecture reduces the effort to create a clean architecture through the following features:\n* **Serialization of immutable requests and responses** without serialization specific annotations.\n* **No necessity for DTOs.** You can use the same immutable objects for requests/responses in web layer and use cases. \n* **Generic endpoint** that receives and forwards POST requests. New behavior and domain logic can be added and used without the need to write framework specific code.\n* **Testing with a repository double** that acts like a normal repository. No need for mocking it.\n\nTo start creating a modern clean architecture, visit the [spring-behavior-web](https://github.com/bertilmuth/modern-clean-architecture/tree/main/spring-behavior-web) page.\n\nFor testing support, see the [spring-behavior-test](https://github.com/bertilmuth/modern-clean-architecture/tree/main/spring-behavior-test) page.\n\nFor a working sample from frontend to backend, see the [To Do List sample](https://github.com/bertilmuth/modern-clean-architecture/tree/main/samples/todolist).\n\nIf you have any questions, see the [Questions \u0026 Answers](https://github.com/bertilmuth/modern-clean-architecture/wiki/Questions-\u0026-Answers) on the wiki. Or chat with me on Gitter.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbertilmuth%2Fmodern-clean-architecture","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbertilmuth%2Fmodern-clean-architecture","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbertilmuth%2Fmodern-clean-architecture/lists"}