{"id":21540496,"url":"https://github.com/othercodes/sample-todo-list-hexagonal-architecture","last_synced_at":"2025-07-12T22:34:11.642Z","repository":{"id":78684816,"uuid":"471727989","full_name":"othercodes/sample-todo-list-hexagonal-architecture","owner":"othercodes","description":"Sample of TO-DO List Application using Hexagonal Architecture. ","archived":false,"fork":false,"pushed_at":"2023-06-23T07:15:11.000Z","size":81,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-17T21:56:27.643Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/othercodes.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-19T15:00:38.000Z","updated_at":"2022-05-26T15:45:53.000Z","dependencies_parsed_at":"2025-03-17T21:45:57.565Z","dependency_job_id":"2e79b28f-d004-4816-8c98-e96c107cdfa1","html_url":"https://github.com/othercodes/sample-todo-list-hexagonal-architecture","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/othercodes/sample-todo-list-hexagonal-architecture","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/othercodes%2Fsample-todo-list-hexagonal-architecture","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/othercodes%2Fsample-todo-list-hexagonal-architecture/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/othercodes%2Fsample-todo-list-hexagonal-architecture/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/othercodes%2Fsample-todo-list-hexagonal-architecture/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/othercodes","download_url":"https://codeload.github.com/othercodes/sample-todo-list-hexagonal-architecture/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/othercodes%2Fsample-todo-list-hexagonal-architecture/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265066119,"owners_count":23706062,"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":[],"created_at":"2024-11-24T04:19:09.089Z","updated_at":"2025-07-12T22:34:11.631Z","avatar_url":"https://github.com/othercodes.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sample TODO List with Hexagonal Architecture\n\nSample of TO-DO List Application using Hexagonal Architecture.\n\n1. **Infrastructure**: Database specific connectors all 3rd part dependant goes here.\n2. **Application**: Main use cases.\n3. **Domain**: All the business logic goes here.\n\n## Domain\n\n![Class Diagram](/resources/sample-todo-list.png?raw=true)\n\n```bash\nto_do_list\n    ├── shared\n    │         └── domain\n    │             └── models.py\n    └── tasks\n        ├── application\n        │         ├── services.py\n        │         └── sources.py\n        ├── domain\n        │         ├── contracts.py\n        │         ├── exceptions.py\n        │         ├── models.py\n        │         └── services.py\n        └── infrastructure\n            └── persistence\n                └── relational.py\n```\n\n## CLI Application\n\n```bash\napp\n    ├── configuration.py\n    ├── console.py\n    └── providers.py\n```\n\n## Installation\n\nJust run poetry to install the dependencies.\n\n```bash\npoetry install\n```\n\nNext, you need to create and configure the `.env` file.\n\n```bash\n# create .env file\ncp example.env .env\n# create the database file.\ntouch to_do_list.db\n```\n\n## Usage\n\nOnce the dependencies are installed, you can run the application using the following command.\n\n```bash\n# initialize the database.\npoetry run python todo.py init\n# use the application.\npoetry run python todo.py\n```\n\n## Tests\n\n1. **Unit**: tests the domain and application layer.\n2. **Integration**: tests the infrastructure layer.\n\nTo run test you can use the following command.\n\n```bash\npoetry run pytest\n```\n\n```bash\ntests                         \n    ├── conftest.py                                                        \n    ├── integration                                                        \n    │     └── test_infrastructure_persistence.py                             \n    └── unit                                                                               \n          └── test_application_services.py\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fothercodes%2Fsample-todo-list-hexagonal-architecture","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fothercodes%2Fsample-todo-list-hexagonal-architecture","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fothercodes%2Fsample-todo-list-hexagonal-architecture/lists"}