{"id":22006314,"url":"https://github.com/javiorfo/go-microservice-mongo","last_synced_at":"2026-01-24T01:37:12.390Z","repository":{"id":253440396,"uuid":"843514220","full_name":"javiorfo/go-microservice-mongo","owner":"javiorfo","description":"Go, MongoDB, Tracing, Auditory, Swagger and Keycloak","archived":false,"fork":false,"pushed_at":"2024-08-23T14:54:30.000Z","size":41,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-09-14T04:38:01.390Z","etag":null,"topics":["api-rest","fiber","go","golang","keycloak","mongodb","security","web"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","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}},"created_at":"2024-08-16T17:23:38.000Z","updated_at":"2024-09-06T14:55:11.000Z","dependencies_parsed_at":"2024-10-26T15:36:27.354Z","dependency_job_id":"f4fb62dc-c5db-4b91-9b24-6638a1fb89d3","html_url":"https://github.com/javiorfo/go-microservice-mongo","commit_stats":null,"previous_names":["javiorfo/go-microservice-mongo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javiorfo%2Fgo-microservice-mongo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javiorfo%2Fgo-microservice-mongo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javiorfo%2Fgo-microservice-mongo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javiorfo%2Fgo-microservice-mongo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/javiorfo","download_url":"https://codeload.github.com/javiorfo/go-microservice-mongo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252583892,"owners_count":21771942,"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-rest","fiber","go","golang","keycloak","mongodb","security","web"],"created_at":"2024-11-30T01:11:35.410Z","updated_at":"2026-01-24T01:37:12.327Z","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-mongo\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- Go 1.23 (at the moment)\n- Libraries\n    - Web: Fiber\n    - OAuth2: Gocloak\n    - Validations: Go Playground Validator\n    - Unit Test: Testify\n    - DB: MongoDB\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- Custom Auditory\n- Database\n    - MongoDB for the app\n    - Testcontainers for testing\n\n## Files\n- [Dockerfile](https://github.com/javiorfo/go-microservice-mongo/tree/master/Dockerfile)\n- [Ship files](https://github.com/javiorfo/java-spring3-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-mongo/your-project-name/g' {} +\n```\n\n## Postgres instead of MongoDB\n- [Postgres repo](https://github.com/javiorfo/go-microservice) contains version with Postgres\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-mongo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaviorfo%2Fgo-microservice-mongo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaviorfo%2Fgo-microservice-mongo/lists"}