├── .air.toml ├── .env.example ├── .github ├── issue-branch.yml ├── issue_template.md ├── pull_request_template.md └── workflows │ ├── create_branch.yml │ ├── go.yml │ └── issue-autolink.yml ├── .gitignore ├── LICENSE ├── Makefile ├── README.md ├── cmd └── main.go ├── config ├── database.go ├── email.go ├── logger.go └── logs │ └── query_log │ └── .gitignore ├── create_module.sh ├── database ├── entities │ ├── common.go │ ├── migration_entity.go │ ├── refresh_token_entity.go │ └── user_entity.go ├── manager.go ├── migration.go ├── migrations │ ├── 20240101000000_create_users_table.go │ └── 20240101000001_create_refresh_tokens_table.go ├── seeder.go └── seeders │ ├── json │ └── users.json │ └── seeds │ └── user_seed.go ├── docker-compose.yml ├── docker ├── Dockerfile ├── air │ └── .gitignore ├── nginx │ └── default.conf └── postgresql │ └── .gitignore ├── go.mod ├── go.sum ├── logs.html ├── middlewares ├── authentication.go └── cors.go ├── modules ├── auth │ ├── controller │ │ └── auth_controller.go │ ├── dto │ │ └── auth_dto.go │ ├── repository │ │ └── refresh_token_repository.go │ ├── routes.go │ ├── service │ │ ├── auth_service.go │ │ └── jwt_service.go │ ├── tests │ │ └── auth_validation_test.go │ └── validation │ │ └── auth_validation.go └── user │ ├── controller │ └── user_controller.go │ ├── dto │ └── user_dto.go │ ├── query │ └── user_query.go │ ├── repository │ └── user_repository.go │ ├── routes.go │ ├── service │ └── user_service.go │ ├── tests │ └── user_validation_test.go │ └── validation │ └── user_validation.go ├── pkg ├── constants │ └── common.go ├── helpers │ └── password.go └── utils │ ├── aes.go │ ├── email-template │ └── base_mail.html │ ├── email.go │ ├── file.go │ └── response.go ├── providers └── core.go └── script ├── command.go ├── example_script.go └── script.go /.air.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/.air.toml -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/.env.example -------------------------------------------------------------------------------- /.github/issue-branch.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/.github/issue-branch.yml -------------------------------------------------------------------------------- /.github/issue_template.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/.github/issue_template.md -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/.github/pull_request_template.md -------------------------------------------------------------------------------- /.github/workflows/create_branch.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/.github/workflows/create_branch.yml -------------------------------------------------------------------------------- /.github/workflows/go.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/.github/workflows/go.yml -------------------------------------------------------------------------------- /.github/workflows/issue-autolink.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/.github/workflows/issue-autolink.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.env 2 | storage/ 3 | assets/ 4 | volumes/ 5 | .idea/ -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/README.md -------------------------------------------------------------------------------- /cmd/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/cmd/main.go -------------------------------------------------------------------------------- /config/database.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/config/database.go -------------------------------------------------------------------------------- /config/email.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/config/email.go -------------------------------------------------------------------------------- /config/logger.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/config/logger.go -------------------------------------------------------------------------------- /config/logs/query_log/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /create_module.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/create_module.sh -------------------------------------------------------------------------------- /database/entities/common.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/database/entities/common.go -------------------------------------------------------------------------------- /database/entities/migration_entity.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/database/entities/migration_entity.go -------------------------------------------------------------------------------- /database/entities/refresh_token_entity.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/database/entities/refresh_token_entity.go -------------------------------------------------------------------------------- /database/entities/user_entity.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/database/entities/user_entity.go -------------------------------------------------------------------------------- /database/manager.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/database/manager.go -------------------------------------------------------------------------------- /database/migration.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/database/migration.go -------------------------------------------------------------------------------- /database/migrations/20240101000000_create_users_table.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/database/migrations/20240101000000_create_users_table.go -------------------------------------------------------------------------------- /database/migrations/20240101000001_create_refresh_tokens_table.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/database/migrations/20240101000001_create_refresh_tokens_table.go -------------------------------------------------------------------------------- /database/seeder.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/database/seeder.go -------------------------------------------------------------------------------- /database/seeders/json/users.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/database/seeders/json/users.json -------------------------------------------------------------------------------- /database/seeders/seeds/user_seed.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/database/seeders/seeds/user_seed.go -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /docker/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/docker/Dockerfile -------------------------------------------------------------------------------- /docker/air/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /docker/nginx/default.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/docker/nginx/default.conf -------------------------------------------------------------------------------- /docker/postgresql/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/go.sum -------------------------------------------------------------------------------- /logs.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/logs.html -------------------------------------------------------------------------------- /middlewares/authentication.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/middlewares/authentication.go -------------------------------------------------------------------------------- /middlewares/cors.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/middlewares/cors.go -------------------------------------------------------------------------------- /modules/auth/controller/auth_controller.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/modules/auth/controller/auth_controller.go -------------------------------------------------------------------------------- /modules/auth/dto/auth_dto.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/modules/auth/dto/auth_dto.go -------------------------------------------------------------------------------- /modules/auth/repository/refresh_token_repository.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/modules/auth/repository/refresh_token_repository.go -------------------------------------------------------------------------------- /modules/auth/routes.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/modules/auth/routes.go -------------------------------------------------------------------------------- /modules/auth/service/auth_service.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/modules/auth/service/auth_service.go -------------------------------------------------------------------------------- /modules/auth/service/jwt_service.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/modules/auth/service/jwt_service.go -------------------------------------------------------------------------------- /modules/auth/tests/auth_validation_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/modules/auth/tests/auth_validation_test.go -------------------------------------------------------------------------------- /modules/auth/validation/auth_validation.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/modules/auth/validation/auth_validation.go -------------------------------------------------------------------------------- /modules/user/controller/user_controller.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/modules/user/controller/user_controller.go -------------------------------------------------------------------------------- /modules/user/dto/user_dto.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/modules/user/dto/user_dto.go -------------------------------------------------------------------------------- /modules/user/query/user_query.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/modules/user/query/user_query.go -------------------------------------------------------------------------------- /modules/user/repository/user_repository.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/modules/user/repository/user_repository.go -------------------------------------------------------------------------------- /modules/user/routes.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/modules/user/routes.go -------------------------------------------------------------------------------- /modules/user/service/user_service.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/modules/user/service/user_service.go -------------------------------------------------------------------------------- /modules/user/tests/user_validation_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/modules/user/tests/user_validation_test.go -------------------------------------------------------------------------------- /modules/user/validation/user_validation.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/modules/user/validation/user_validation.go -------------------------------------------------------------------------------- /pkg/constants/common.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/pkg/constants/common.go -------------------------------------------------------------------------------- /pkg/helpers/password.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/pkg/helpers/password.go -------------------------------------------------------------------------------- /pkg/utils/aes.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/pkg/utils/aes.go -------------------------------------------------------------------------------- /pkg/utils/email-template/base_mail.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/pkg/utils/email-template/base_mail.html -------------------------------------------------------------------------------- /pkg/utils/email.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/pkg/utils/email.go -------------------------------------------------------------------------------- /pkg/utils/file.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/pkg/utils/file.go -------------------------------------------------------------------------------- /pkg/utils/response.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/pkg/utils/response.go -------------------------------------------------------------------------------- /providers/core.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/providers/core.go -------------------------------------------------------------------------------- /script/command.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/script/command.go -------------------------------------------------------------------------------- /script/example_script.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/script/example_script.go -------------------------------------------------------------------------------- /script/script.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Caknoooo/go-gin-clean-starter/HEAD/script/script.go --------------------------------------------------------------------------------