{"id":17645563,"url":"https://github.com/sgaunet/template-api","last_synced_at":"2026-02-10T10:37:30.997Z","repository":{"id":209896740,"uuid":"705336753","full_name":"sgaunet/template-api","owner":"sgaunet","description":"template-api is a project to bootstrap a golang api project with go new command.","archived":false,"fork":false,"pushed_at":"2025-08-01T20:30:39.000Z","size":257,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-01T22:34:50.289Z","etag":null,"topics":["api-rest","bootstrap","golang","template"],"latest_commit_sha":null,"homepage":"","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/sgaunet.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-10-15T18:26:29.000Z","updated_at":"2025-08-01T20:30:37.000Z","dependencies_parsed_at":"2023-11-29T18:28:36.007Z","dependency_job_id":"38a0e455-0684-43b0-8fd0-151b5144a180","html_url":"https://github.com/sgaunet/template-api","commit_stats":null,"previous_names":["sgaunet/template-api"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/sgaunet/template-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgaunet%2Ftemplate-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgaunet%2Ftemplate-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgaunet%2Ftemplate-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgaunet%2Ftemplate-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sgaunet","download_url":"https://codeload.github.com/sgaunet/template-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sgaunet%2Ftemplate-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268309851,"owners_count":24230168,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["api-rest","bootstrap","golang","template"],"created_at":"2024-10-23T10:57:19.502Z","updated_at":"2026-02-10T10:37:30.918Z","avatar_url":"https://github.com/sgaunet.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# template-api\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/sgaunet/template-api)](https://goreportcard.com/report/github.com/sgaunet/template-api)\n![GitHub Downloads](https://img.shields.io/github/downloads/sgaunet/template-api/total)\n![GitHub Release](https://img.shields.io/github/v/release/sgaunet/template-api)\n![Test Coverage](https://raw.githubusercontent.com/wiki/sgaunet/template-api/coverage-badge.svg)\n[![License](https://img.shields.io/github/license/sgaunet/template-api.svg)](LICENSE)\n[![linter](https://github.com/sgaunet/template-api/actions/workflows/linter.yml/badge.svg)](https://github.com/sgaunet/template-api/actions/workflows/linter.yml)\n[![coverage](https://github.com/sgaunet/template-api/actions/workflows/coverage.yml/badge.svg)](https://github.com/sgaunet/template-api/actions/workflows/coverage.yml)\n[![snapshot](https://github.com/sgaunet/template-api/actions/workflows/snapshot.yml/badge.svg)](https://github.com/sgaunet/template-api/actions/workflows/snapshot.yml)\n[![release](https://github.com/sgaunet/template-api/actions/workflows/release.yml/badge.svg)](https://github.com/sgaunet/template-api/actions/workflows/release.yml)\n\ntemplate-api is an API REST template project.\n\n```bash\n# install gonew\ngo install golang.org/x/tools/cmd/gonew@latest\n# use gonew to create your project based on this template\ngonew github.com/sgaunet/template-api gitplatform.com/username/awesome_new_project\ncd awesome_new_project\ngit init\ngit add .\ngit remote add origin git@gitplatform.com:username/awesome_new_project\ngit push -u origin master\n```\n\n## Run\n\n```\n$ cat cfg.yaml\ndbdsn: postgres://user:password@host:port/dbname?sslmode=disable\n$ template-api -cfg cfg.yaml\n...\n```\n\n## Install\n\n* Download the binary in the release section\n* Or use the docker image \n\n\n# Development\n\nThis project is using :\n\n* golang\n* [task for development](https://taskfile.dev/#/)\n* docker\n* [docker buildx](https://github.com/docker/buildx)\n* docker manifest\n* [goreleaser](https://goreleaser.com/)\n* [pre-commit](https://pre-commit.com/)\n\nThere are hooks executed in the precommit stage. Once the project cloned on your disk, please install pre-commit:\n\n```\nbrew install pre-commit\n```\n\nInstall tools:\n\n```\ntask dev:prereq\n```\n\nAnd install the hooks:\n\n```\ntask dev:install\n```\n\nTo launch manually the pre-commmit hook:\n\n```\ntask dev:pre-commit\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsgaunet%2Ftemplate-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsgaunet%2Ftemplate-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsgaunet%2Ftemplate-api/lists"}