{"id":13806919,"url":"https://github.com/koddr/tutorial-go-fiber-rest-api","last_synced_at":"2025-05-15T20:02:52.206Z","repository":{"id":38312673,"uuid":"346033147","full_name":"koddr/tutorial-go-fiber-rest-api","owner":"koddr","description":"📖 Build a RESTful API on Go: Fiber, PostgreSQL, JWT and Swagger docs in isolated Docker containers.","archived":false,"fork":false,"pushed_at":"2025-04-17T08:26:06.000Z","size":220,"stargazers_count":389,"open_issues_count":1,"forks_count":80,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-29T19:58:31.028Z","etag":null,"topics":["api","docker","fiber","fiber-framework","go","golang","jwt","rest-api","restful","swagger","tutorial","tutorial-code","tutorial-sourcecode","tutorials"],"latest_commit_sha":null,"homepage":"https://dev.to/koddr/build-a-restful-api-on-go-fiber-postgresql-jwt-and-swagger-docs-in-isolated-docker-containers-475j","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/koddr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"liberapay":"koddr"}},"created_at":"2021-03-09T14:26:05.000Z","updated_at":"2025-04-28T16:17:09.000Z","dependencies_parsed_at":"2022-07-12T17:24:40.697Z","dependency_job_id":"d1654d20-eaf0-4805-a393-236d597b6b6d","html_url":"https://github.com/koddr/tutorial-go-fiber-rest-api","commit_stats":{"total_commits":61,"total_committers":6,"mean_commits":"10.166666666666666","dds":"0.29508196721311475","last_synced_commit":"9b515419cec08844e5512a86b7290c3c78b70f78"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koddr%2Ftutorial-go-fiber-rest-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koddr%2Ftutorial-go-fiber-rest-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koddr%2Ftutorial-go-fiber-rest-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koddr%2Ftutorial-go-fiber-rest-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koddr","download_url":"https://codeload.github.com/koddr/tutorial-go-fiber-rest-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254414477,"owners_count":22067270,"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":["api","docker","fiber","fiber-framework","go","golang","jwt","rest-api","restful","swagger","tutorial","tutorial-code","tutorial-sourcecode","tutorials"],"created_at":"2024-08-04T01:01:17.998Z","updated_at":"2025-05-15T20:02:51.274Z","avatar_url":"https://github.com/koddr.png","language":"Go","readme":"# 📖 Tutorial: Build a RESTful API on Go\n\nFiber, PostgreSQL, JWT and Swagger docs in isolated Docker containers.\n\n👉 The full article is published on **March 22, 2021**, on Dev.to: https://dev.to/koddr/build-a-restful-api-on-go-fiber-postgresql-jwt-and-swagger-docs-in-isolated-docker-containers-475j\n\n![fiber_cover_gh](https://user-images.githubusercontent.com/11155743/112001218-cf258b00-8b2f-11eb-9c6d-d6c38a09af86.jpg)\n\n## Quick start\n\n1. Rename `.env.example` to `.env` and fill it with your environment values.\n2. Install [Docker](https://www.docker.com/get-started) and [migrate](https://github.com/golang-migrate/migrate) tool for applying migrations.\n3. Run project by this command:\n\n```bash\nmake docker.run\n\n# Process:\n#   - Generate API docs by Swagger\n#   - Create a new Docker network for containers\n#   - Build and run Docker containers (Fiber, PostgreSQL)\n#   - Apply database migrations (using github.com/golang-migrate/migrate)\n```\n\n4. Go to your API Docs page: [127.0.0.1:5000/swagger/index.html](http://127.0.0.1:5000/swagger/index.html)\n\n![Screenshot](https://user-images.githubusercontent.com/11155743/111976684-f15ce000-8b12-11eb-871a-8d32465900fe.png)\n\n## P.S.\n\nIf you want more articles like this on this blog, then post a comment below and subscribe to me. Thanks! 😘\n\nAnd, of course, you can support me by donating at [LiberaPay](https://liberapay.com/koddr/donate). _Each donation will be used to write new articles and develop non-profit open-source projects for the community._\n\n[![Support author at LiberaPay](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zq8442cqyjq2i1jdeay8.png)](https://liberapay.com/koddr/donate)\n\n## ⚠️ License\n\nMIT \u0026copy; [Vic Shóstak](https://github.com/koddr) \u0026 [True web artisans](https://1wa.co/).\n\n\n## Building:\n\nhttps://levelup.gitconnected.com/a-better-way-than-ldflags-to-add-a-build-version-to-your-go-binaries-2258ce419d2d\n\n\n\nWindows:\n```\n$ set CGO_ENABLED=0 \u0026\u0026 go build -ldflags=\"-w -s -X 'main.version=1.0.1'\" .\n```\n","funding_links":["https://liberapay.com/koddr","https://liberapay.com/koddr/donate"],"categories":["📁 Recipes"],"sub_categories":["🌱 Third Party"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoddr%2Ftutorial-go-fiber-rest-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoddr%2Ftutorial-go-fiber-rest-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoddr%2Ftutorial-go-fiber-rest-api/lists"}