{"id":19408791,"url":"https://github.com/daern91/payment-engine","last_synced_at":"2025-02-25T02:17:51.247Z","repository":{"id":229538776,"uuid":"773999169","full_name":"daern91/payment-engine","owner":"daern91","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-25T01:25:47.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-07T14:24:28.653Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/daern91.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}},"created_at":"2024-03-18T19:08:47.000Z","updated_at":"2024-03-25T01:19:28.000Z","dependencies_parsed_at":"2024-03-25T02:49:56.163Z","dependency_job_id":"9a615e0f-bed8-4df9-b38d-10cf9a91208e","html_url":"https://github.com/daern91/payment-engine","commit_stats":null,"previous_names":["daern91/payment-engine"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daern91%2Fpayment-engine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daern91%2Fpayment-engine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daern91%2Fpayment-engine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daern91%2Fpayment-engine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daern91","download_url":"https://codeload.github.com/daern91/payment-engine/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240587480,"owners_count":19825005,"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":[],"created_at":"2024-11-10T12:07:53.543Z","updated_at":"2025-02-25T02:17:51.216Z","avatar_url":"https://github.com/daern91.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple Payment Engine\n\nThis payment engine is a toy I built during a mini hackathon a Sunday night.\n\nIt handles various types of transactions, including deposits, withrawals, disputes, resolutions, and chargebacks.\n\nIt's also got some basic error handling with it's custom `EngineError`.\n\n## Getting Started\n\nRust and Cargo (latest stable version recommended). See [Rust's installation guide](https://www.rust-lang.org/tools/install) for instructions.\n\n## Getting Started\n\n1. Clone the repo `git clone https://example.com/toy-payments-engine.git \u0026\u0026 cd toy-payments-engine`\n2. Run it with either `cargo run -- \u003cyour-file.csv\u003e` or build with `cargo build --release`, then run it with the same argument.\n\n## Input Format\n\nThe input CSV file should have the following cols, `type`, `client`, `tx`, and `amount`. See integration tests for inspiration.\n\n## Output Format\n\nThe app outputs csv, which you can pipe to whichever app or redirect to file. E.g.\n\n`cat many_transactions.csv | target/debug/paymentengine | vim -`\nor\n`cargo run -- transactions.csv \u003e accounts.csv`\n\n## Tests\n\nYou can run the test suite with `cargo test`.\n\n## TODO\n\nGiven the short time-frame for this little toy there are plenty of things I'd like to improve. However, all tests are green and it's fully functional. If I find more time I'd like to continue with the list below.\n\n- [ ] Add unit tests\n- [ ] Add benchmark testing (maybe with [criterion](https://docs.rs/criterion/latest/criterion/))\n- [ ] Look into threading and/or async for web server. E.g. we could use one thread for reading, one for processing, one for writing, and use send the data between them through channels.\n- [ ] Optimize memory usage.\n- [ ] Add more logging\n- [ ] Add dockerfile\n- [ ] Set up cicd pipeline\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaern91%2Fpayment-engine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaern91%2Fpayment-engine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaern91%2Fpayment-engine/lists"}