{"id":13495794,"url":"https://github.com/flosse/clean-architecture-with-rust","last_synced_at":"2025-04-05T20:06:45.441Z","repository":{"id":53091572,"uuid":"369524357","full_name":"flosse/clean-architecture-with-rust","owner":"flosse","description":"Full-Stack Clean Architecture implementation example written in Rust","archived":false,"fork":false,"pushed_at":"2024-10-02T00:22:58.000Z","size":631,"stargazers_count":133,"open_issues_count":1,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T19:04:47.111Z","etag":null,"topics":["architecture","clean-architecture","full-stack","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flosse.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-21T12:13:32.000Z","updated_at":"2025-03-23T07:21:03.000Z","dependencies_parsed_at":"2024-01-16T09:54:22.067Z","dependency_job_id":"f547b2a6-aad8-401a-8357-135f68acebe6","html_url":"https://github.com/flosse/clean-architecture-with-rust","commit_stats":{"total_commits":80,"total_committers":1,"mean_commits":80.0,"dds":0.0,"last_synced_commit":"3a2f2ba8dca5bf59e6796b6cf41c1e25238ee85d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flosse%2Fclean-architecture-with-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flosse%2Fclean-architecture-with-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flosse%2Fclean-architecture-with-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flosse%2Fclean-architecture-with-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flosse","download_url":"https://codeload.github.com/flosse/clean-architecture-with-rust/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247393569,"owners_count":20931812,"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":["architecture","clean-architecture","full-stack","rust"],"created_at":"2024-07-31T19:01:38.305Z","updated_at":"2025-04-05T20:06:45.400Z","avatar_url":"https://github.com/flosse.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# Full-Stack Clean Architecture with Rust\n\nThis repository contains an example implementation of a\n[Clean Architecture](https://blog.cleancoder.com/uncle-bob/2012/08/13/the-clean-architecture.html)\nwritten in [Rust](https://rust-lang.org).\n\n## Circles\n\nEach circle (a.k.a layer) is organized in a separate crate.\nCurrently there are these circles:\n\n- `domain`\n- `application`\n- `adapter`\n  - `json-boundary`\n- `infrastructure`\n  - `cli`\n  - `db`\n  - `desktop-egui`\n  - `web`\n    - `web-app`\n      - `web-app-api`\n      - `web-app-kern`\n      - `web-app-seed`\n    - `web-server-warp`\n\nDepending on your system the amount and the name of circles could\nbe different but the main **dependency rule** must be ensured:\n\n\u003e Source code dependencies can only point inwards.\n\nthat means\n\n\u003e Nothing in an inner circle can know anything at all about\n\u003e something in an outer circle\n\n## Build \u0026 run\n\nFirst install [just](https://just.systems/):\n\n```\ncargo install just\n```\n\nThen you can run\n\n```\njust run-web\n```\nor\n\n```\njust run-desktop\n```\n\nor\n\n```\njust run-cli\n```\n\n## Example Szenario\n\nThe main purpose of this example is to discuss the architecture,\nnot the application szenario itself.\nNevertheless, the code represents a real-world application\nthat helps self-employed people organize their lives.\n\n### User Stories\n\n\u003e *As a* self-employed person,\n\u003e *I want to* be able to write down spontaneous thoughts,\n\u003e *so that* I can find them later again at a central point.\n\n\u003e *As a* self-employed person,\n\u003e *I want to* structure my thoughts,\n\u003e *so that* they're connected with my personal life topics.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflosse%2Fclean-architecture-with-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflosse%2Fclean-architecture-with-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflosse%2Fclean-architecture-with-rust/lists"}