{"id":17366728,"url":"https://github.com/renatodts/payments-technical-interview","last_synced_at":"2026-05-09T14:38:57.344Z","repository":{"id":257361460,"uuid":"858013020","full_name":"renatodts/payments-technical-interview","owner":"renatodts","description":"Payments API project, developed for a technical interview.","archived":false,"fork":false,"pushed_at":"2024-09-16T17:09:40.000Z","size":89,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T21:14:10.304Z","etag":null,"topics":["api","api-gateway","api-rest","backend","cqrs","ddd","domain-driven-design","eda","event-driven-architecture","event-sourcing","express","framework","payments","rest-api","technical-interview","typescript"],"latest_commit_sha":null,"homepage":"https://www.linkedin.com/in/renatodts/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/renatodts.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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-09-16T06:30:59.000Z","updated_at":"2024-09-16T17:09:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"3f2aa428-ee70-4304-bcbf-5de7afe07ef4","html_url":"https://github.com/renatodts/payments-technical-interview","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"bef939d79b087901d088f85d0b3891233a2ce79f"},"previous_names":["renatodts/payments-technical-interview"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renatodts%2Fpayments-technical-interview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renatodts%2Fpayments-technical-interview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renatodts%2Fpayments-technical-interview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renatodts%2Fpayments-technical-interview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/renatodts","download_url":"https://codeload.github.com/renatodts/payments-technical-interview/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245898335,"owners_count":20690466,"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","api-gateway","api-rest","backend","cqrs","ddd","domain-driven-design","eda","event-driven-architecture","event-sourcing","express","framework","payments","rest-api","technical-interview","typescript"],"created_at":"2024-10-15T22:04:32.393Z","updated_at":"2026-05-09T14:38:57.314Z","avatar_url":"https://github.com/renatodts.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Technical Interview Project\n\n## Overview\n\nFor this technical interview, I opted to create a custom framework instead of using existing ones to showcase my capabilities and provide full control over architectural decisions, based on Hexagonal Architecture principles.\n\nThe project was completed over several days, with a strong focus on meeting the expectations and requirements of the task. I implemented CQRS (Command Query Responsibility Segregation) and Event Sourcing from scratch, while adhering to best practices.\n\nI also incorporated Domain-Driven Design (DDD) concepts, including the creation of value objects and the implementation of business rules within their respective classes. The project reflects a thorough and thoughtful approach beyond standard professional requirements.\n\n## Getting Started\n\n### Installation\n\n1. Install the necessary npm dependencies:\n\n   ```bash\n   npm install\n   ```\n\n2. Start the application:\n\n   ```bash\n   npm run start\n   ```\n\n3. In a separate terminal, start the external API:\n\n   ```bash\n   npm run external-api\n   ```\n\n### API Endpoints\n\n- **Create Payment**\n\n  Use the following `curl` command to create a payment. Import into Postman:\n\n  ```bash\n  curl -L 'localhost:3000/payment' -H 'Content-Type: application/json' -H 'Authorization: Bearer VALID_AUTH_TOKEN' -d '{ \"pixKey\": \"1234567890\", \"amount\": 1000.00 }'\n  ```\n\n- **Get Payment Details**\n\n  Use the following `curl` command to retrieve payment details. Import into Postman:\n\n  ```bash\n  curl -L 'localhost:3000/payment/:id' -H 'Authorization: Bearer VALID_AUTH_TOKEN'\n  ```\n\n## Contact\n\nFeel free to reach out if you have any questions or need further clarification.\n\nRenato de Matos  \ncontact@renatodematos.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frenatodts%2Fpayments-technical-interview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frenatodts%2Fpayments-technical-interview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frenatodts%2Fpayments-technical-interview/lists"}