{"id":16409684,"url":"https://github.com/coderatio/ok-assessment","last_synced_at":"2026-04-17T13:31:10.620Z","repository":{"id":114098342,"uuid":"607523427","full_name":"coderatio/ok-assessment","owner":"coderatio","description":"An assessment to build microservices with Nest.js, MongoDB and Typescript","archived":false,"fork":false,"pushed_at":"2023-03-01T15:59:44.000Z","size":352,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-24T02:31:01.392Z","etag":null,"topics":[],"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/coderatio.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":"2023-02-28T06:17:50.000Z","updated_at":"2023-03-08T03:25:30.000Z","dependencies_parsed_at":"2023-06-12T21:15:24.767Z","dependency_job_id":null,"html_url":"https://github.com/coderatio/ok-assessment","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/coderatio/ok-assessment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderatio%2Fok-assessment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderatio%2Fok-assessment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderatio%2Fok-assessment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderatio%2Fok-assessment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coderatio","download_url":"https://codeload.github.com/coderatio/ok-assessment/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderatio%2Fok-assessment/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31931185,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T12:37:54.787Z","status":"ssl_error","status_checked_at":"2026-04-17T12:37:25.095Z","response_time":62,"last_error":"SSL_read: 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":[],"created_at":"2024-10-11T06:20:51.492Z","updated_at":"2026-04-17T13:31:10.586Z","avatar_url":"https://github.com/coderatio.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Microservices Take Home Assessment\n\nThe project has three microservices.\n- User Service\n- Authentication Service\n- Payment Service\n\n# Structure\n```lua\n.\n├── User Service (Nest.js)/\n│   ├── src/\n│   │   ├── common\n│   │   ├── filters\n│   │   ├── guards\n│   │   ├── payment\n│   │   ├── schemas\n│   │   ├── users\n│   │   └── wallets\n│   ├── Dockerfile\n│   ├── .env\n│   └── package.json\n├── Auth Service (Nest.js)/\n│   ├── src/\n│   │   ├── auth\n│   │   ├── common\n│   │   └── filters\n│   ├── Dockerfile\n│   ├── .env\n│   └── package.json\n├── Payment Service (Nest.js)/\n│   ├── src/\n│   │   ├── common\n│   │   ├── filters\n│   │   ├── guards\n│   │   ├── payment\n│   │   ├── schemas\n│   │   └── wallets\n│   ├── Dockerfile\n│   ├── .env\n│   └── package.json\n├── .gitignore\n├── docker-compose.yaml\n├── package.json\n└── README.md\n```\nAll the services are using `nest.js` so all dependencies are expected to be installed.\n\n# Technologies Used\n- Node.js\n- Nest.js\n- Typescript\n- Mongo\n- Docker\n- RxJs\n\n## User Service\nThis service is responsible for managing users. The following endpoints are available\n- ### `POST /users`\n- ### `POST /wallets` - communicates with payment service\n- ### `GET /users/:id`\n- ### `GET /payments/:id` - communicates with payment service\n- ### `GET /wallets/:id`- communicates with payment service\n\n## Authentication Service\nThis service is responsible for authenticating registered users. It's used by both `user` and `payment` services. \nIt has the following routes.\n- ### `POST /login`\n- ### `RPC ({ role: 'auth', cmd: 'check' })` - Verifies JWT token\n\n# Payment Service\nThe payment service is responsible for generating wallets and processing all forms of payments. The service has the following endpoints\n- ### `POST /wallets/fund`\n- ### `POST /initiate`\n- ### `POST /payment/refund`\n- ### `GET /paymets/verify/:id`\n- ### `RPC ({ role: 'wallets', cmd: 'create' })`\n- ### `RPC ({ role: 'wallets', cmd: 'get' })`\n- ### `RPC ({ role: 'payments', cmd: 'get' })`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderatio%2Fok-assessment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoderatio%2Fok-assessment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderatio%2Fok-assessment/lists"}