{"id":22006325,"url":"https://github.com/javiorfo/go-microservice","last_synced_at":"2026-01-02T01:57:22.709Z","repository":{"id":234607112,"uuid":"789232447","full_name":"javiorfo/go-microservice","owner":"javiorfo","description":"API Rest, Tracing, Auditory, Swagger and Keycloak","archived":false,"fork":false,"pushed_at":"2025-05-23T23:24:22.000Z","size":115,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-24T00:27:27.519Z","etag":null,"topics":["api","fiber","go","golang","gorm-orm","keycloak","microservice","security","tracing","web"],"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/javiorfo.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":"2024-04-20T01:42:02.000Z","updated_at":"2025-05-23T23:24:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"b77c1888-c7bd-4a0e-a901-df3916609790","html_url":"https://github.com/javiorfo/go-microservice","commit_stats":null,"previous_names":["javiorfo/go-microservice","javiorfo/rust-microservice","chaosystema/go-microservice"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/javiorfo/go-microservice","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javiorfo%2Fgo-microservice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javiorfo%2Fgo-microservice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javiorfo%2Fgo-microservice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javiorfo%2Fgo-microservice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/javiorfo","download_url":"https://codeload.github.com/javiorfo/go-microservice/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javiorfo%2Fgo-microservice/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266631355,"owners_count":23959419,"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-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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","fiber","go","golang","gorm-orm","keycloak","microservice","security","tracing","web"],"created_at":"2024-11-30T01:11:37.439Z","updated_at":"2026-01-02T01:57:22.682Z","avatar_url":"https://github.com/javiorfo.png","language":"Go","funding_links":["https://www.paypal.com/donate/?hosted_button_id=FA7SGLSCT2H8G"],"categories":[],"sub_categories":[],"readme":"# go-microservice\n*Golang archetype oriented to microservices.*\n\n## Dependencies\nGolang, Docker, Make, [Swag tool](https://github.com/swaggo/swag)\n\n## Features\n- Architecture\n    - Handlers, respositories and services\n    - Custom Messages and Errors\n    - Pagination and Ordering\n    - DB Migrator\n- Go 1.24 (at the moment)\n- Libraries\n    - Web: Fiber\n    - ORM: Gorm\n    - OAuth2: Gocloak\n    - Validations: Go Playground Validator\n    - Unit Test: Testify\n    - DB: Postgres\n    - Tracing: Opentelemetry\n    - Test: Testcontainers\n    - OpenAPI: Fiber Swagger\n    - Environment: Godot\n- Keycloak as Auth Server\n- Distributed tracing\n    - OpenTelemetry, Micrometer and Jaeger\n- Swagger\n    - Swaggo \u0026 Fiber Swagger\n    - Customized with command **make swagger** (OAuth2 server by parameter and not static)\n- Auditory\n    - Gorm custom auditory\n- Database\n    - Postgres for the app\n    - Testcontainers for testing\n\n## Files\n- [Dockerfile](https://github.com/javiorfo/go-microservice/tree/master/Dockerfile)\n- [Ship files](https://github.com/javiorfo/go-microservice/tree/master/ships)\n    - For those using Neovim and [this plugin](https://github.com/javiorfo/nvim-ship)\n\n## Usage\n- Executing `make help` all the available commands will be listed. \n- Also the standard Go commands could be used, like `go run main.go`\n- To use this archetype with a different name, execute this command to replace the names:\n```bash\nfind . -type f -exec sed -i 's/go-microservice/your-project-name/g' {} +\n```\n\n## MongoDB instead of Postgres\n- [MongoDB repo](https://github.com/javiorfo/go-microservice-mongo) contains version with MongoDB\n\n---\n\n### Donate\n- **Bitcoin** [(QR)](https://raw.githubusercontent.com/javiorfo/img/master/crypto/bitcoin.png)  `1GqdJ63RDPE4eJKujHi166FAyigvHu5R7v`\n- [Paypal](https://www.paypal.com/donate/?hosted_button_id=FA7SGLSCT2H8G)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaviorfo%2Fgo-microservice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaviorfo%2Fgo-microservice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaviorfo%2Fgo-microservice/lists"}