{"id":15272389,"url":"https://github.com/jennwah/go-webhttp-backend","last_synced_at":"2026-01-04T23:02:30.059Z","repository":{"id":159073706,"uuid":"634394328","full_name":"jennwah/go-webhttp-backend","owner":"jennwah","description":"A web-http-go-api-service template","archived":false,"fork":false,"pushed_at":"2023-05-07T03:45:40.000Z","size":238,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-27T19:28:26.809Z","etag":null,"topics":["docker-compose","elk","gin","go","mysql","redis"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jennwah.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}},"created_at":"2023-04-30T01:08:05.000Z","updated_at":"2023-05-17T15:38:38.000Z","dependencies_parsed_at":"2023-05-27T21:30:20.388Z","dependency_job_id":null,"html_url":"https://github.com/jennwah/go-webhttp-backend","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":"amitshekhariitbhu/go-backend-clean-architecture","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jennwah%2Fgo-webhttp-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jennwah%2Fgo-webhttp-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jennwah%2Fgo-webhttp-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jennwah%2Fgo-webhttp-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jennwah","download_url":"https://codeload.github.com/jennwah/go-webhttp-backend/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244990069,"owners_count":20543614,"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":["docker-compose","elk","gin","go","mysql","redis"],"created_at":"2024-09-30T09:05:50.379Z","updated_at":"2026-01-04T23:02:30.003Z","avatar_url":"https://github.com/jennwah.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go template for web http API service\n\n- [Gin framework](https://github.com/gin-gonic/gin)\n- Clean Architecture\n- MySQL Database integration\n- Redis Cache integration\n- Docker compose development\n- minikube local development for kubernetes\n- ELK integration for application's logs\n\n\n## To bootstrap service with docker compose\n\n1. install go dependencies `go get ./...`\n2. run `make run-app` to bootstrap app with docker compose\n3. `make migrations.up` for database migrations\n4. try CURL \n```bash\ncurl --location --request POST 'http://localhost:8080/api/v1/task' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\n    \"title\": \"new task\"\n}'\n```\n5. try CURL \n```\ncurl --location --request GET 'http://localhost:8080/api/v1/task/1' \\\n--header 'Content-Type: application/json' \\\n```\n6. Check application's logs at \u003cb\u003ehttp://localhost:5601/app/logs/stream\u003c/b\u003e with Kibana UI\n7. If you're interested in caching strategy used in this app, (read aside strategy), see on `Get task by ID usecase` on its implementation\n\n`docker exec -it {redis-container-id} redis-cli` \n\n`HGET key fields..`\n\n## To bootstrap service with minikube \n\n1. `brew install minikube`\n2. `minikube start`\n3. `kubectl apply -f {all files in ./kubernetes dir}` \n4. `kubectl logs -l app=backend/mysql/redis` to debug. `kubectl get pods`, `kubectl describe pods {pod_name}`, `kubectl get deployments`\n5. `minikube service backend -url` to get backend server URL. \n\n\n## Reference Gin's [Quick Start Guide] (https://github.com/gin-gonic/gin/blob/master/docs/doc.md)\n\n- for web development stuff such as middlewares, custom validators, handling errors, routes, request binding and etc\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjennwah%2Fgo-webhttp-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjennwah%2Fgo-webhttp-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjennwah%2Fgo-webhttp-backend/lists"}