{"id":15714504,"url":"https://github.com/temirlan-zh/test-task-user-api","last_synced_at":"2026-04-07T09:31:15.607Z","repository":{"id":256589888,"uuid":"848333450","full_name":"temirlan-zh/test-task-user-api","owner":"temirlan-zh","description":"Implementation of a test task for a job application.","archived":false,"fork":false,"pushed_at":"2024-08-27T15:24:30.000Z","size":168,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-13T19:10:36.190Z","etag":null,"topics":["e2e-tests","jest","mongodb","mongoose","nestjs","rabbitmq","rest-api","typescript","unit-testing"],"latest_commit_sha":null,"homepage":"","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/temirlan-zh.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":"2024-08-27T15:13:19.000Z","updated_at":"2024-09-11T14:05:21.000Z","dependencies_parsed_at":"2024-09-11T23:46:16.125Z","dependency_job_id":"0c920772-24e2-47b9-9ae3-c282d6ff0e55","html_url":"https://github.com/temirlan-zh/test-task-user-api","commit_stats":null,"previous_names":["temirlan-zh/test-task-user-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/temirlan-zh/test-task-user-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/temirlan-zh%2Ftest-task-user-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/temirlan-zh%2Ftest-task-user-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/temirlan-zh%2Ftest-task-user-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/temirlan-zh%2Ftest-task-user-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/temirlan-zh","download_url":"https://codeload.github.com/temirlan-zh/test-task-user-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/temirlan-zh%2Ftest-task-user-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31507926,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["e2e-tests","jest","mongodb","mongoose","nestjs","rabbitmq","rest-api","typescript","unit-testing"],"created_at":"2024-10-03T21:37:44.706Z","updated_at":"2026-04-07T09:31:15.586Z","avatar_url":"https://github.com/temirlan-zh.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Description\nImplementation of a test task for a job application.\n\n### Test task:\nShould use:\n- NestJS Framework\n- MongoDB\n- RabbitMQ\n\nREST app should consist of:\n\n- **POST /api/users**\n\n  \tStores the user entry in db. After the creation, send an email and RabbitMQ event. Email can be dummy sending (no consumer needed).\n\n- **GET /api/user/{userId}**\n\n\tReturns a user in JSON representation.\n\n- **GET /api/user/{userId}/avatar**\n\n\tRetrieves image by 'avatar' field. Returns its base64-encoded representation.\n\n\tOn the first request it should save the image as a plain file, create a MongoDB entry with userId and hash.\n\n\tOn following requests should return the previously saved file.\n\n- **DELETE /api/user/{userId}/avatar**\n\n\tRemoves the file from the file system and the stored entry from db.\n\nShould cover code with unit and e2e tests.\n\n## Installation\n```bash\n$ npm install\n```\n\n## Running the app\n```bash\n$ npm run start\n```\nYou should configure URIs for MongoDB and RabbitMQ in `.env` file.\n\n## Test\n```bash\n# unit tests\n\n$ npm run test\n\n\n# e2e tests\n\n$ npm run test:e2e\n```\nFor e2e tests, you need to have running instances of MongoDB and RabbitMQ, and you need to configure the URIs in `.env.test` file.\n\nThere is also a _Postman_ collection to help with manual testing.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftemirlan-zh%2Ftest-task-user-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftemirlan-zh%2Ftest-task-user-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftemirlan-zh%2Ftest-task-user-api/lists"}