{"id":51166770,"url":"https://github.com/darkweak/lbc-test-demo","last_synced_at":"2026-06-26T20:01:30.263Z","repository":{"id":366791590,"uuid":"1277371966","full_name":"darkweak/lbc-test-demo","owner":"darkweak","description":null,"archived":false,"fork":false,"pushed_at":"2026-06-23T09:50:35.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-06-23T12:17:23.417Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/darkweak.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-22T20:49:47.000Z","updated_at":"2026-06-23T09:50:39.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/darkweak/lbc-test-demo","commit_stats":null,"previous_names":["darkweak/lbc-test-demo"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/darkweak/lbc-test-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkweak%2Flbc-test-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkweak%2Flbc-test-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkweak%2Flbc-test-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkweak%2Flbc-test-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darkweak","download_url":"https://codeload.github.com/darkweak/lbc-test-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkweak%2Flbc-test-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34831250,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-26T02:00:06.560Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":[],"created_at":"2026-06-26T20:01:29.387Z","updated_at":"2026-06-26T20:01:30.254Z","avatar_url":"https://github.com/darkweak.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LBC - Test\n\n## Subject\nThe original fizz-buzz consists in writing all numbers from 1 to 100, and just replacing all\nmultiples of 3 by \"fizz\"\n, all multiples of 5 by \"buzz\"\n, and all multiples of 15 by \"fizzbuzz\"\n.\nThe output would look like this:\n\"1,2,fizz,4,buzz,fizz,7,8,fizz,buzz,11,fizz,13,14,fizzbuzz,16,...\n\"\n.Your goal is to implement a\nweb server that will expose a REST API endpoint that:\n- Accepts five parameters: three integers int1, int2 and limit, and two strings str1 and str2.\n- Returns a list of strings with numbers from 1 to limit, where: all multiples of int1 are\n  replaced by str1, all multiples of int2 are replaced by str2, all multiples of int1 and int2 are\n  replaced by str1str2.The server needs to be:\n- Ready for production\n- Easy to maintain by other developersBonus: add a statistics endpoint allowing users to\n  know what the most frequent request has been. This endpoint should:\n- Accept no parameter\n- Return the parameters corresponding to the most used request, as well as the number of\n  hits for this request\n\n## Setup\nJust run `make prepare` to install all deps.\n\n## Commands\nRun:\n```\ngo run cmd/server.go\n```\n\nLint:\n```\nmake lint\n```\n\n## Environment variables\n| Name              | Description                                                                                                                             | Default value | Required                                |\n|:------------------|:----------------------------------------------------------------------------------------------------------------------------------------|:--------------|:----------------------------------------|\n| `ADDRESS`         | Define the server address                                                                                                               | `:8080`       | no                                      |\n| `ENABLE_KAFKA`    | Feature toggle to enable Kafka                                                                                                          | `false`       | no                                      |\n| `KAFKA_ADDRESSES` | Set the Kafka adresses. Set only when `ENABLE_KAFKA` is set to `true`. Format is like `localhost:29092,localhost:29094,localhost:29096` |               | only when `ENABLE_KAFKA` is set to true |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarkweak%2Flbc-test-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarkweak%2Flbc-test-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarkweak%2Flbc-test-demo/lists"}