GitHub - samber/do-template-api: 🛠️ API boilerplate showcasing github.com/samber/do (original) (raw)

API boilerplate showcasing github.com/samber/do

Go Version Build Status Go report License

⚙️ 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:

🚀 Install

Clone the repo and install dependencies:

git clone --depth 1 --branch main https://github.com/samber/do-template-api.git your-project-name cd your-project-name

docker compose up -d make deps make deps-tools

💡 Features

🚀 Contributing

install deps

make deps make deps-tools

compile

make build

build with hot-reload

make watch-run

test with hot-reload

make watch-test

🤠 do documentation

💫 Show your support

Give a ⭐️ if this project helped you!

GitHub Sponsors

📝 License

Copyright © 2025 Samuel Berthe.

This project is MIT licensed.