{"id":17096133,"url":"https://github.com/ega4432/go-rest-api-docker","last_synced_at":"2026-04-09T23:11:46.108Z","repository":{"id":45817058,"uuid":"514488527","full_name":"ega4432/go-rest-api-docker","owner":"ega4432","description":null,"archived":false,"fork":false,"pushed_at":"2023-06-19T13:16:53.000Z","size":22,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-31T20:50:13.548Z","etag":null,"topics":["air","api","docker","docker-compose","go","go-rest-api-docker","golang","mysql","rest","rest-api"],"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/ega4432.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}},"created_at":"2022-07-16T05:38:43.000Z","updated_at":"2022-07-23T04:44:22.000Z","dependencies_parsed_at":"2023-10-20T17:05:52.640Z","dependency_job_id":"aa759660-fb3b-4015-80ca-14720f3d4de3","html_url":"https://github.com/ega4432/go-rest-api-docker","commit_stats":{"total_commits":28,"total_committers":1,"mean_commits":28.0,"dds":0.0,"last_synced_commit":"d450ee905d3deed41d6dd27bdc01cc02c49f1c8d"},"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/ega4432/go-rest-api-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ega4432%2Fgo-rest-api-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ega4432%2Fgo-rest-api-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ega4432%2Fgo-rest-api-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ega4432%2Fgo-rest-api-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ega4432","download_url":"https://codeload.github.com/ega4432/go-rest-api-docker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ega4432%2Fgo-rest-api-docker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265982728,"owners_count":23859573,"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","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":["air","api","docker","docker-compose","go","go-rest-api-docker","golang","mysql","rest","rest-api"],"created_at":"2024-10-14T14:44:42.146Z","updated_at":"2026-04-09T23:11:46.076Z","avatar_url":"https://github.com/ega4432.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-rest-api-docker\n\n[![ci](https://github.com/ega4432/go-rest-api-docker/actions/workflows/ci.yaml/badge.svg)](https://github.com/ega4432/go-rest-api-docker/actions/workflows/ci.yaml)\n\n## Overview\n\nThis repository is a template for a Todo application in the Golang that can run on any platform as long as Docker is running.\n\nMySQL is used as the data store.\n\n## Endpoints\n\nMethod | Path | Description\n--- | --- | ---\nGET | `/tasks` | Get all tasks |\nPOST | `/tasks` | Create a new task |\nGET | `/tasks/{id}` | Get a task |\nPUT | `/tasks/{id}` | Update a task |\nDELETE | `/tasks/{id}` | Delete a task |\n\n## Usage\n\n```shell\n$ git clone git@github.com:ega4432/go-rest-api-docker.git \u0026\u0026 cd go-rest-api-docker\n\n$ cp .env.example .env\n\n$ docker compose up --build\n```\n\n## Tips\n\n### Connect db container\n\n```shell\n$ docker compose exec -it db /bin/bash -c \"mysql -uroot -p\u003cPASSWORD\u003e\"\n```\n\n### Import API test file with Thunder client\n\n1. Install extension from [here](https://marketplace.visualstudio.com/items?itemName=rangav.vscode-thunder-client)\n2. Import [JSON file](https://github.com/ega4432/go-rest-api-docker/blob/main/.vscode/thunder-collection_go-rest-api-docker.json)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fega4432%2Fgo-rest-api-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fega4432%2Fgo-rest-api-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fega4432%2Fgo-rest-api-docker/lists"}