{"id":15320430,"url":"https://github.com/szuecs/go-gin-webapp","last_synced_at":"2026-03-03T04:40:04.751Z","repository":{"id":57554318,"uuid":"54490963","full_name":"szuecs/go-gin-webapp","owner":"szuecs","description":"Go Gin Webapp template project","archived":false,"fork":false,"pushed_at":"2018-01-07T17:33:47.000Z","size":5463,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-14T23:37:01.639Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/szuecs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-22T16:27:48.000Z","updated_at":"2023-03-20T13:14:50.000Z","dependencies_parsed_at":"2022-09-26T18:51:18.591Z","dependency_job_id":null,"html_url":"https://github.com/szuecs/go-gin-webapp","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/szuecs/go-gin-webapp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szuecs%2Fgo-gin-webapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szuecs%2Fgo-gin-webapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szuecs%2Fgo-gin-webapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szuecs%2Fgo-gin-webapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/szuecs","download_url":"https://codeload.github.com/szuecs/go-gin-webapp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/szuecs%2Fgo-gin-webapp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30032061,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T03:27:35.548Z","status":"ssl_error","status_checked_at":"2026-03-03T03:27:09.213Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-01T09:08:28.228Z","updated_at":"2026-03-03T04:40:04.699Z","avatar_url":"https://github.com/szuecs.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-gin-webapp\nGo Gin Webapp is a template project, that you can use to build your\nRESTful microservices using [Gin](https://github.com/gin-gonic/gin) in\nsimilar to [this blogpost](http://txt.fliglio.com/2014/07/restful-microservices-in-go-with-gin/).\n\nIt defaults the configuration to use https, if you configure the paths\nto Certificate and Key correctly.\n\n[Gin-gomonitor](https://github.com/szuecs/gin-gomonitor)\nprovides default metrics and you can easily implement your own\nmetrics, if you need.\n\nIt uses [gin-glog](https://github.com/szuecs/gin-glog)\nmiddleware, which internally uses [glog](https://github.com/golang/glog) as\nlogger. This provides you leveled Logs, commandline options and logs\nare flushed to disk in a separate goroutine with a configurable interval.\n\nAn [OAuth2 middleware](https://github.com/zalando/gin-oauth2)\nsupports you to secure your web applications, if you need\nauthentication and authorization.\n\n## Usage\n\nTo create a new web application, you can do the following steps\n\n    # osx need to set SED=gsed, because it uses sed -i (inplace)\n    make create.app APP=myapp REPO_USER=github.com/szuecs SED=gsed \n\nThe main package and function of the service is in\ncmd/$APP/server.go. It parses flags and merges the configuration to\nstart the service. A client main package can be find in\ncmd/$APP-cli/client.go.\n\nThe api package bootstraps the http(s) microservice, middleware,\nregisters the path specific handlers and you implement handlers\n(similar to Controller in MVC) there.\n\nThe client package implements a client, that calls your api endpoints.\n\nConfiguring your service and client, use the following make target:\n\n    % make config\n\nCreate a docker container from your current git tagged release, it\nwill automatically create scm-source.json for you and you git tools to\nget the tagged version from your local tree:\n\n    % make build.docker\n    % make build.push    # if you want to build and push\n\nCreate a rkt container from your current git tagged release:\n\n    % make build.rkt\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fszuecs%2Fgo-gin-webapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fszuecs%2Fgo-gin-webapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fszuecs%2Fgo-gin-webapp/lists"}