mirror of
https://github.com/SamyRai/tercul-backend.git
synced 2025-12-27 00:31:35 +00:00
Refactored the application's dependency injection and server setup to improve modularity and adhere to the Dependency Inversion Principle. - Moved the instantiation of all application services from `internal/app/app.go` to the composition root in `cmd/api/main.go`. - The `app.NewApplication` function now accepts pre-built service interfaces, making the `app` package a simple container. - Updated `internal/testutil/integration_test_utils.go` to reflect the new DI pattern, ensuring tests align with the refactored structure. - Corrected build errors that arose from the refactoring, including import conflicts and incorrect function calls. - Updated `TASKS.md` to mark the 'Refactor Dependency Injection' task as complete. |
||
|---|---|---|
| .github/workflows | ||
| api | ||
| cmd | ||
| content/blog | ||
| deploy | ||
| internal | ||
| ops | ||
| pkg/linguistics | ||
| schemas | ||
| test | ||
| .air.toml | ||
| .gitignore | ||
| .tool-versions | ||
| AGENTS.md | ||
| docker-compose.yml | ||
| Dockerfile | ||
| Dockerfile.dev | ||
| go.mod | ||
| go.sum | ||
| gqlgen.yml | ||
| Makefile | ||
| refactor.md | ||
| requirements.txt | ||
| TASKS.md | ||
| tools.go | ||