{"repo":"samber/do-template-api","free":true,"listed":false,"github":"https://github.com/samber/do-template-api","clone":"git clone https://github.com/samber/do-template-api.git","description":"🛠️ API boilerplate showcasing github.com/samber/do","language":"Go","stars":14,"topics":["api","boilerplate","container","dependency-injection","di","dig","do","fix","go","graceful-shutdown"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"API boilerplate showcasing github.com/samber/do ⚙️ A comprehensive API template demonstrating the github.com/samber/do dependency injection library. A 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. Perfect as a starting point for new Go web projects or as a learning resource for understanding dependency injection patterns in API applications. See also: - do-template-worker - do-template-cli 🚀 Install Clone the repo and install dependencies: 💡 Features - Type-safe dependency injection - Service registration and resolution using samber/do - Modular architecture - Clean separation of concerns with dependency tree visualization - REST API framework - Built with Gin for robust HTTP web services - Configuration management - Environment-based configuration with dependency injection - PostgreSQL integration - Complete database setup with connection pooling and migrations - Repository pattern - Data access layer with injected dependencies - Service layer - Business logic with proper dependency management - Application lifecycle - Health checks and graceful shutdown handling - Comprehensive error handling - Structured logging and error management - Production-ready - Ready to fork and customize for your next API project - Extensive do","default_branch":null,"files":null,"tree":[],"storefront":"/r/samber","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/samber/do-template-api/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}