{"id":37187949,"url":"https://github.com/adriancrafter/todoapp","last_synced_at":"2026-01-14T21:51:45.908Z","repository":{"id":214881214,"uuid":"737571682","full_name":"adriancrafter/todoapp","owner":"adriancrafter","description":"A practical blueprint for future projects and development kit","archived":false,"fork":false,"pushed_at":"2024-05-31T13:41:03.000Z","size":8687,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-20T23:36:29.144Z","etag":null,"topics":["go","golang","micro-monolith","microservice","reference-implementation"],"latest_commit_sha":null,"homepage":"","language":"Go","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/adriancrafter.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":"2023-12-31T15:14:24.000Z","updated_at":"2024-05-31T13:41:07.000Z","dependencies_parsed_at":"2024-06-20T22:44:28.022Z","dependency_job_id":"fee5f3d3-2752-442d-a783-105d30a8aaa0","html_url":"https://github.com/adriancrafter/todoapp","commit_stats":null,"previous_names":["adriancrafter/todoapp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/adriancrafter/todoapp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adriancrafter%2Ftodoapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adriancrafter%2Ftodoapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adriancrafter%2Ftodoapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adriancrafter%2Ftodoapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adriancrafter","download_url":"https://codeload.github.com/adriancrafter/todoapp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adriancrafter%2Ftodoapp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28436224,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T21:32:52.117Z","status":"ssl_error","status_checked_at":"2026-01-14T21:32:33.442Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["go","golang","micro-monolith","microservice","reference-implementation"],"created_at":"2026-01-14T21:51:45.118Z","updated_at":"2026-01-14T21:51:45.894Z","avatar_url":"https://github.com/adriancrafter.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Todo List Reference Implementation\n\nThis project serves as a basic Todo list application designed to be a reference implementation for future multi-tenant capable applications. Whether built as microservices, micro-monoliths, or monolith apps, this project provides a foundation for integrating key features.\n\n## Key Features:\n\n- **Authentication and Authorization:** The application includes a robust session-based authentication and authorization system for web features. API endpoints use tokens for secure authentication.\n\n- **Role-Based Access Control (RBAC):** A simple RBAC system is implemented to control access to different functions within the application. This allows for fine-grained control over user permissions.\n\n- **Web Views with SSR Rendering:** The web views are designed to support Server-Side Rendering (SSR) for improved performance. Additionally, dynamic content is managed using htmx for a seamless user experience.\n\n## Layered Architecture:\n\nThe project follows a layered architecture with an emphasis on the use of interfaces. The graph of dependencies is assembled in the `App` package, including:\n\n- **Config:** Configuration settings for the application.\n\n- **Logger:** Logging functionality for monitoring and debugging.\n\n- **Database Access:** Support for SQL databases, with a current focus on PostgreSQL.\n\n- **Repos:** Repositories for data storage and retrieval, implementing the repository pattern.\n\n- **SQL Queries:** Externalized queries, easily editable in custom files, seamlessly embedded in the binary.\n\n- **Services:** Business logic services.\n\n- **Controllers (Web and API):** Handles HTTP requests and invokes the appropriate service layer functions.\n\n- **Templates:** Streamlined loading from an embedded file system with implemented caching. Future plans include the flexibility to switch to an external filesystem.\n\n## Project Structure:\n\nThe project follows a feature-based organization approach, where each feature is encapsulated within its own package. This promotes modularity, reduces import lists, and ensures a clear separation of concerns. The organization includes components such as routes definition, controllers, services, models, view models, data access, and conversion utilities.\n\n### Feature Packages:\n\n- `Todo List`: The core feature package containing components for managing todo lists, items, and associated functionality.\n\n### Future Features:\n\nAs the project evolves, additional features will be added, each following a similar distribution of file types within its own package. The consistent structure facilitates maintainability and scalability.\n\n## Notes\n\nAfter the foundational structure of the project is established in this exploratory phase, a comprehensive set of tests will then be developed to ensure thorough coverage of the codebase.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadriancrafter%2Ftodoapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadriancrafter%2Ftodoapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadriancrafter%2Ftodoapp/lists"}