{"id":20520509,"url":"https://github.com/dynamicsingh/exchange-app","last_synced_at":"2025-07-15T18:41:06.568Z","repository":{"id":39059923,"uuid":"279116598","full_name":"dynamicsingh/exchange-app","owner":"dynamicsingh","description":"Exchange App for exchanging currencies using almost live exchange rates.","archived":false,"fork":false,"pushed_at":"2023-01-05T22:24:05.000Z","size":2591,"stargazers_count":2,"open_issues_count":19,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-06T00:23:15.704Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://startling-capybara-d4ba08.netlify.app/","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/dynamicsingh.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}},"created_at":"2020-07-12T17:42:31.000Z","updated_at":"2023-12-29T06:23:01.000Z","dependencies_parsed_at":"2023-02-04T20:32:00.852Z","dependency_job_id":null,"html_url":"https://github.com/dynamicsingh/exchange-app","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dynamicsingh/exchange-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dynamicsingh%2Fexchange-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dynamicsingh%2Fexchange-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dynamicsingh%2Fexchange-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dynamicsingh%2Fexchange-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dynamicsingh","download_url":"https://codeload.github.com/dynamicsingh/exchange-app/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dynamicsingh%2Fexchange-app/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265451510,"owners_count":23767771,"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-15T22:20:11.693Z","updated_at":"2025-07-15T18:41:06.530Z","avatar_url":"https://github.com/dynamicsingh.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Features of the Exchange app\n1. User has three currency pockets EUR, GBP, USD and their respective balances, we are using predefined initial balances for this app.\n    * In the real scenario, we can fetch those from the backend.\n2. User can exchange within source and destination currency types using any of the currency pocket balance to transact.\n    * User can type the amount in source pocket and see the amount in destination pocket or visa versa according to the live rate.\n    * If the amount in source pocket is greater than the pocket balance for that currency, an error is shown i.e exceeds balance.\n    * User can switch/swap the source and destination currency types using a switch/swap button.\n    * We took an assumption that our app doesn't allow the user to transfer more than 999,999,999.99 due to government regulations.\n3. The exchange rate is fetched using free API https://api.exchangeratesapi.io and for demo purpose, we update it every 10 seconds to let user exchange currencies at almost live rate.\n    * Live exchange rate in regard to source and destination exchange currency is shown in the middle of the screen.\n4. Can do a valid currency exchange\n    * If the amount in the source is less than the balance pocket amount of that currency.\n    * If the source and destination currency are different.\n    * If we have the exchange rate for both currencies.\n    * A valid transaction shows a success notification updating the balances in both source and the destination currency pocket.\n\n\n![](./doc-assets/appScreen.png)  \n    \n\n## Development considerations\n1. The project uses typescript with a flat folder structure to make the application simple.\n2. Uses react hooks and leverage the functional programming paradigm.\n2. Almost every component, action creator, reducer, hook, util has a unit test suite or integration test suite.\n    * 14 test suits with 49 tests for the different areas of the application.\n\n![](./doc-assets/testResults.png)  \n\n\n## Packages/dependencies being used\nPlease check `package.json` file for the list of dependencies\n\n## Main technologies being used\n1. React with Typescript\n2. Redux with redux-thunk \n3. React Testing Library with jest\n\n\n## Steps for running the app\n##### Step1: For dev setup `yarn`\n\n##### Step2: To start the app `yarn start`\n\n## Important commands\n\n##### To test the app `yarn test`\n\n##### To build the app `yarn build`\n\n\n**Note**: the app runs on node 12.x and yarn 1.x\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdynamicsingh%2Fexchange-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdynamicsingh%2Fexchange-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdynamicsingh%2Fexchange-app/lists"}