{"id":34227450,"url":"https://github.com/samber/do-template-api","last_synced_at":"2026-03-10T16:11:37.975Z","repository":{"id":316592363,"uuid":"1064020162","full_name":"samber/do-template-api","owner":"samber","description":"🛠️ API boilerplate showcasing github.com/samber/do","archived":false,"fork":false,"pushed_at":"2025-12-29T18:19:53.000Z","size":56,"stargazers_count":5,"open_issues_count":6,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-15T12:33:32.324Z","etag":null,"topics":["api","boilerplate","container","dependency-injection","di","dig","do","fix","go","graceful-shutdown","healthcheck","injector","invoke","ioc","provide","template","wire"],"latest_commit_sha":null,"homepage":"https://github.com/samber/do","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/samber.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-25T12:36:14.000Z","updated_at":"2026-01-28T07:29:15.000Z","dependencies_parsed_at":"2025-09-25T14:47:41.244Z","dependency_job_id":null,"html_url":"https://github.com/samber/do-template-api","commit_stats":null,"previous_names":["samber/do-template-api"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/samber/do-template-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samber%2Fdo-template-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samber%2Fdo-template-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samber%2Fdo-template-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samber%2Fdo-template-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samber","download_url":"https://codeload.github.com/samber/do-template-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samber%2Fdo-template-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30342143,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T15:55:29.454Z","status":"ssl_error","status_checked_at":"2026-03-10T15:54:58.440Z","response_time":106,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["api","boilerplate","container","dependency-injection","di","dig","do","fix","go","graceful-shutdown","healthcheck","injector","invoke","ioc","provide","template","wire"],"created_at":"2025-12-16T00:56:19.476Z","updated_at":"2026-03-10T16:11:37.965Z","avatar_url":"https://github.com/samber.png","language":"Go","readme":"\n# API boilerplate showcasing github.com/samber/do\n\n![Go Version](https://img.shields.io/badge/Go-%3E%3D%201.23-%23007d9c)\n![Build Status](https://github.com/samber/do-template-api/actions/workflows/test.yml/badge.svg)\n[![Go report](https://goreportcard.com/badge/github.com/samber/do-template-api)](https://goreportcard.com/report/github.com/samber/do)\n[![License](https://img.shields.io/github/license/samber/do-template-api)](./LICENSE)\n\n**⚙️ A comprehensive API template demonstrating the `github.com/samber/do` dependency injection library.**\n\nA comprehensive API template project demonstrating the full power of the `github.com/samber/do` dependency injection library. This project implements a complete REST API with PostgreSQL integration, showcasing type-safe dependency injection, modular architecture, and real-world web application concerns.\n\nPerfect as a starting point for new Go web projects or as a learning resource for understanding dependency injection patterns in API applications.\n\n**See also:**\n\n- [do-template-worker](https://github.com/samber/do-template-worker)\n- [do-template-cli](https://github.com/samber/do-template-cli)\n\n## 🚀 Install\n\nClone the repo and install dependencies:\n\n```bash\ngit clone --depth 1 --branch main https://github.com/samber/do-template-api.git your-project-name\ncd your-project-name\n\ndocker compose up -d\nmake deps\nmake deps-tools\n```\n\n## 💡 Features\n\n- **Type-safe dependency injection** - Service registration and resolution using `samber/do`\n- **Modular architecture** - Clean separation of concerns with dependency tree visualization\n- **REST API framework** - Built with Gin for robust HTTP web services\n- **Configuration management** - Environment-based configuration with dependency injection\n- **PostgreSQL integration** - Complete database setup with connection pooling and migrations\n- **Repository pattern** - Data access layer with injected dependencies\n- **Service layer** - Business logic with proper dependency management\n- **Application lifecycle** - Health checks and graceful shutdown handling\n- **Comprehensive error handling** - Structured logging and error management\n- **Production-ready** - Ready to fork and customize for your next API project\n- **Extensive documentation** - Inline comments explaining every `do` library feature\n\n## 🚀 Contributing\n\n```sh\n# install deps\nmake deps\nmake deps-tools\n\n# compile\nmake build\n\n# build with hot-reload\nmake watch-run\n\n# test with hot-reload\nmake watch-test\n```\n\n## 🤠 `do` documentation\n\n- [GoDoc: https://godoc.org/github.com/samber/do/v2](https://godoc.org/github.com/samber/do/v2)\n- [Documentation](https://do.samber.dev/docs/getting-started)\n\n## 💫 Show your support\n\nGive a ⭐️ if this project helped you!\n\n[![GitHub Sponsors](https://img.shields.io/github/sponsors/samber?style=for-the-badge)](https://github.com/sponsors/samber)\n\n## 📝 License\n\nCopyright © 2025 [Samuel Berthe](https://github.com/samber).\n\nThis project is [MIT](./LICENSE) licensed.\n","funding_links":["https://github.com/sponsors/samber"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamber%2Fdo-template-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamber%2Fdo-template-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamber%2Fdo-template-api/lists"}