{"id":16445294,"url":"https://github.com/lloydmeta/todddo-openapi","last_synced_at":"2026-05-01T23:34:25.779Z","repository":{"id":141731360,"uuid":"203128122","full_name":"lloydmeta/todddo-openapi","owner":"lloydmeta","description":"Exploring DDD, dependency-management, testing, web in the world of Golang.","archived":false,"fork":false,"pushed_at":"2019-08-19T11:17:20.000Z","size":159,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-09T01:02:01.665Z","etag":null,"topics":["ddd","gin","go","golang","mock","openapi","swagger","testing"],"latest_commit_sha":null,"homepage":null,"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/lloydmeta.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":"2019-08-19T08:12:02.000Z","updated_at":"2019-10-07T03:37:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"7f3106fb-a7de-47de-8c05-ea53d96416a7","html_url":"https://github.com/lloydmeta/todddo-openapi","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/lloydmeta%2Ftodddo-openapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lloydmeta%2Ftodddo-openapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lloydmeta%2Ftodddo-openapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lloydmeta%2Ftodddo-openapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lloydmeta","download_url":"https://codeload.github.com/lloydmeta/todddo-openapi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240831198,"owners_count":19864711,"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":["ddd","gin","go","golang","mock","openapi","swagger","testing"],"created_at":"2024-10-11T09:43:56.702Z","updated_at":"2026-05-01T23:34:25.748Z","avatar_url":"https://github.com/lloydmeta.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Golang exploration [![Build Status](https://travis-ci.org/lloydmeta/todddo-openapi.svg?branch=master)](https://travis-ci.org/lloydmeta/todddo-openapi) [![codecov](https://codecov.io/gh/lloydmeta/todddo-openapi/branch/master/graph/badge.svg)](https://codecov.io/gh/lloydmeta/todddo-openapi)\n\nA simple Todo list server implementation, but explores:\n\n1. [Gomodules](https://github.com/golang/go/wiki/Modules) for dep management\n2. DDD-esque go-style project structuring\n    - Pure `domain` module holds models, repos and services\n    - `infra` module holds tech-specific `domain` implementations\n    - `api` module defines controllers and modules, and uses `domain` constructs\n    - `app` instantiates and holds components needed booting up a server in `main.go`; this module also knows about the \n      concrete `infra` and web framework used (kept web framework separate from `infra` because it's top-level and can change\n      independently of other tech relatively easily)\n3. Go test, with an eye on maximising testability by enabling mocking of interfaces.\n4. Auto-generated Swagger/OpenAPI clients via [Swaggo](https://github.com/swaggo/swag)\n5. Easy to understand dependency-injection by building a components graph by hand\n6. The [Gin](https://gin-gonic.com) web framework\n\n\n### Usage\n\n### Running\n\n1. [Install `Go`](https://golang.org/doc/install)\n2. Clone this repo\n3. `go run main.go` and hit the endpoints.\n  - For Swagger, go to [localhost:8080/swagger/index.html](http://localhost:8080/swagger/index.html)\n    ![Swagger](swagger.png)\n\n\n### Dev\n\n1. [Install `Go`](https://golang.org/doc/install)\n2. Use your favourite editor/IDE\n3. For updating Swagger docs:\n    1. Install [Swaggo](https://github.com/swaggo/swag#getting-started)\n    2. Run `swag init` from the root project dir\n    3. Commit the generated files.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flloydmeta%2Ftodddo-openapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flloydmeta%2Ftodddo-openapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flloydmeta%2Ftodddo-openapi/lists"}