{"id":23151274,"url":"https://github.com/samsoft00/klima-metrix-challenge","last_synced_at":"2026-04-29T22:36:41.096Z","repository":{"id":72745993,"uuid":"246276133","full_name":"samsoft00/klima-metrix-challenge","owner":"samsoft00","description":"Example API to upload a csv file containing the list of companies ","archived":false,"fork":false,"pushed_at":"2020-03-31T02:49:01.000Z","size":2469,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-04T15:15:01.301Z","etag":null,"topics":["bull","database","job-queue","microsoft","node","nodejs","queue","redis","typescript","worker"],"latest_commit_sha":null,"homepage":"http://www.oyewoleabayomi.dev","language":"TypeScript","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/samsoft00.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}},"created_at":"2020-03-10T10:52:44.000Z","updated_at":"2020-03-31T02:49:33.000Z","dependencies_parsed_at":"2023-03-21T20:18:06.640Z","dependency_job_id":null,"html_url":"https://github.com/samsoft00/klima-metrix-challenge","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/samsoft00/klima-metrix-challenge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samsoft00%2Fklima-metrix-challenge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samsoft00%2Fklima-metrix-challenge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samsoft00%2Fklima-metrix-challenge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samsoft00%2Fklima-metrix-challenge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samsoft00","download_url":"https://codeload.github.com/samsoft00/klima-metrix-challenge/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samsoft00%2Fklima-metrix-challenge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274719032,"owners_count":25337236,"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-09-11T02:00:13.660Z","response_time":74,"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":["bull","database","job-queue","microsoft","node","nodejs","queue","redis","typescript","worker"],"created_at":"2024-12-17T18:32:17.858Z","updated_at":"2026-04-29T22:36:36.046Z","avatar_url":"https://github.com/samsoft00.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# klima metrix challenge\n\n![System Design](https://github.com/samsoft00/klima-metrix-task/blob/master/doc/design.png)\n\n## Part I\n\n\u003e Develop a script in JavaScript / TypeScript, which takes a list campanies and checks them against the existing database in a smart way. Create the testing data by yourself. Additionally think about a concept how this can be improved in the future. Take into consideration, that we are parsing many lists, with hunderts of campanies every day.\n\n[Link to the script](https://github.com/samsoft00/klima-metrix-task/blob/master/src/lib/sanitizeData.ts)\n\n## Part II\n\n\u003e The task above is only one step of processing the customers data. Build an API, which allows to upload a csv file containing the list of companies of a customer. The upload should trigger a step based procssing. Simulate 5 steps, which all should take 30 - 120 seconds and add your code from above as a 6. and last step. Aditonally allow the user (a Single Page Frontend Application, which is not part of this task) to check the progress. Store results + our company knowledge in a database.\n\n```\nnpm run i\n```\n\n```\nBase URL : http://localhost:3000\nUpload API : /v1/api/upload\nUpload process status API : /v1/api/upload/:processId\n```\n\n**To start server**\n\n```\nnpm run start:local:dev\n```\n\n**To start worker**\n\n```\nnpm run start:local:worker\n```\n\nKindly start redis server for the worker to run.\n\n[Download sample CSV file](https://github.com/samsoft00/klima-metrix-task/blob/master/doc/robots.csv)\n\n|                                          CSV upload response                                           |                                        Upload status response                                        |\n| :----------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------: |\n| ![Upload response](https://github.com/samsoft00/klima-metrix-task/blob/master/doc/upload-response.png) | ![Process Status](https://github.com/samsoft00/klima-metrix-task/blob/master/doc/process-status.png) |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamsoft00%2Fklima-metrix-challenge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamsoft00%2Fklima-metrix-challenge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamsoft00%2Fklima-metrix-challenge/lists"}