├── .air.toml ├── .github ├── dependabot.yml └── workflows │ ├── build.yaml │ ├── codeql.yaml │ ├── golangci-lint.yaml │ └── security.yaml ├── .gitignore ├── LICENSE ├── Makefile ├── README.md ├── app ├── database │ ├── schema │ │ └── article.go │ └── seeder │ │ └── article_seeder.go ├── middleware │ ├── register.go │ └── token │ │ └── token.go ├── module │ └── article │ │ ├── article_module.go │ │ ├── controller │ │ ├── article_controller.go │ │ ├── article_controller_mock.go │ │ └── controller.go │ │ ├── repository │ │ ├── article_repository.go │ │ └── article_repository_mock.go │ │ ├── request │ │ └── article_request.go │ │ └── service │ │ ├── article_service.go │ │ └── article_service_mock.go └── router │ └── api.go ├── cmd └── example │ ├── generate.go │ └── main.go ├── config └── example.toml ├── docker-compose.yaml ├── go.mod ├── go.sum ├── internal ├── bootstrap │ ├── database │ │ └── database.go │ ├── logger.go │ └── webserver.go └── ent │ ├── article.go │ ├── article │ ├── article.go │ └── where.go │ ├── article_create.go │ ├── article_delete.go │ ├── article_query.go │ ├── article_update.go │ ├── client.go │ ├── config.go │ ├── context.go │ ├── ent.go │ ├── enttest │ └── enttest.go │ ├── hook │ └── hook.go │ ├── migrate │ ├── migrate.go │ └── schema.go │ ├── mutation.go │ ├── predicate │ └── predicate.go │ ├── runtime.go │ ├── runtime │ └── runtime.go │ └── tx.go ├── storage ├── ascii_art.txt ├── private.go ├── private │ └── example.html └── public │ └── example.txt └── utils ├── config └── config.go ├── response ├── response.go └── validator.go └── utils.go /.air.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/.air.toml -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/build.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/.github/workflows/build.yaml -------------------------------------------------------------------------------- /.github/workflows/codeql.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/.github/workflows/codeql.yaml -------------------------------------------------------------------------------- /.github/workflows/golangci-lint.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/.github/workflows/golangci-lint.yaml -------------------------------------------------------------------------------- /.github/workflows/security.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/.github/workflows/security.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/README.md -------------------------------------------------------------------------------- /app/database/schema/article.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/app/database/schema/article.go -------------------------------------------------------------------------------- /app/database/seeder/article_seeder.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/app/database/seeder/article_seeder.go -------------------------------------------------------------------------------- /app/middleware/register.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/app/middleware/register.go -------------------------------------------------------------------------------- /app/middleware/token/token.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/app/middleware/token/token.go -------------------------------------------------------------------------------- /app/module/article/article_module.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/app/module/article/article_module.go -------------------------------------------------------------------------------- /app/module/article/controller/article_controller.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/app/module/article/controller/article_controller.go -------------------------------------------------------------------------------- /app/module/article/controller/article_controller_mock.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/app/module/article/controller/article_controller_mock.go -------------------------------------------------------------------------------- /app/module/article/controller/controller.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/app/module/article/controller/controller.go -------------------------------------------------------------------------------- /app/module/article/repository/article_repository.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/app/module/article/repository/article_repository.go -------------------------------------------------------------------------------- /app/module/article/repository/article_repository_mock.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/app/module/article/repository/article_repository_mock.go -------------------------------------------------------------------------------- /app/module/article/request/article_request.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/app/module/article/request/article_request.go -------------------------------------------------------------------------------- /app/module/article/service/article_service.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/app/module/article/service/article_service.go -------------------------------------------------------------------------------- /app/module/article/service/article_service_mock.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/app/module/article/service/article_service_mock.go -------------------------------------------------------------------------------- /app/router/api.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/app/router/api.go -------------------------------------------------------------------------------- /cmd/example/generate.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/cmd/example/generate.go -------------------------------------------------------------------------------- /cmd/example/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/cmd/example/main.go -------------------------------------------------------------------------------- /config/example.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/config/example.toml -------------------------------------------------------------------------------- /docker-compose.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/docker-compose.yaml -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/go.sum -------------------------------------------------------------------------------- /internal/bootstrap/database/database.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/internal/bootstrap/database/database.go -------------------------------------------------------------------------------- /internal/bootstrap/logger.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/internal/bootstrap/logger.go -------------------------------------------------------------------------------- /internal/bootstrap/webserver.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/internal/bootstrap/webserver.go -------------------------------------------------------------------------------- /internal/ent/article.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/internal/ent/article.go -------------------------------------------------------------------------------- /internal/ent/article/article.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/internal/ent/article/article.go -------------------------------------------------------------------------------- /internal/ent/article/where.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/internal/ent/article/where.go -------------------------------------------------------------------------------- /internal/ent/article_create.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/internal/ent/article_create.go -------------------------------------------------------------------------------- /internal/ent/article_delete.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/internal/ent/article_delete.go -------------------------------------------------------------------------------- /internal/ent/article_query.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/internal/ent/article_query.go -------------------------------------------------------------------------------- /internal/ent/article_update.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/internal/ent/article_update.go -------------------------------------------------------------------------------- /internal/ent/client.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/internal/ent/client.go -------------------------------------------------------------------------------- /internal/ent/config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/internal/ent/config.go -------------------------------------------------------------------------------- /internal/ent/context.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/internal/ent/context.go -------------------------------------------------------------------------------- /internal/ent/ent.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/internal/ent/ent.go -------------------------------------------------------------------------------- /internal/ent/enttest/enttest.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/internal/ent/enttest/enttest.go -------------------------------------------------------------------------------- /internal/ent/hook/hook.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/internal/ent/hook/hook.go -------------------------------------------------------------------------------- /internal/ent/migrate/migrate.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/internal/ent/migrate/migrate.go -------------------------------------------------------------------------------- /internal/ent/migrate/schema.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/internal/ent/migrate/schema.go -------------------------------------------------------------------------------- /internal/ent/mutation.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/internal/ent/mutation.go -------------------------------------------------------------------------------- /internal/ent/predicate/predicate.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/internal/ent/predicate/predicate.go -------------------------------------------------------------------------------- /internal/ent/runtime.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/internal/ent/runtime.go -------------------------------------------------------------------------------- /internal/ent/runtime/runtime.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/internal/ent/runtime/runtime.go -------------------------------------------------------------------------------- /internal/ent/tx.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/internal/ent/tx.go -------------------------------------------------------------------------------- /storage/ascii_art.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/storage/ascii_art.txt -------------------------------------------------------------------------------- /storage/private.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/storage/private.go -------------------------------------------------------------------------------- /storage/private/example.html: -------------------------------------------------------------------------------- 1 | Example html file for private storage. -------------------------------------------------------------------------------- /storage/public/example.txt: -------------------------------------------------------------------------------- 1 | Example txt file for public storage. -------------------------------------------------------------------------------- /utils/config/config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/utils/config/config.go -------------------------------------------------------------------------------- /utils/response/response.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/utils/response/response.go -------------------------------------------------------------------------------- /utils/response/validator.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/utils/response/validator.go -------------------------------------------------------------------------------- /utils/utils.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ehsanghaffar/go-fiber-rest-api/HEAD/utils/utils.go --------------------------------------------------------------------------------