{"id":18771660,"url":"https://github.com/riccardogiorato/moonpay-full-stack-challenge","last_synced_at":"2026-02-17T01:03:27.157Z","repository":{"id":128824201,"uuid":"446950936","full_name":"riccardogiorato/moonpay-full-stack-challenge","owner":"riccardogiorato","description":"moonpay fullstack challenge - take home test","archived":false,"fork":false,"pushed_at":"2022-01-16T12:20:07.000Z","size":153,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-07T01:38:16.344Z","etag":null,"topics":["challenge","coding-challenge","fullstack","interview-test","moonpay","take-home-test"],"latest_commit_sha":null,"homepage":"https://moonpay-frontend.riccardogiorato.com/","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/riccardogiorato.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":"2022-01-11T19:16:16.000Z","updated_at":"2025-09-23T22:17:08.000Z","dependencies_parsed_at":"2023-03-30T12:48:21.181Z","dependency_job_id":null,"html_url":"https://github.com/riccardogiorato/moonpay-full-stack-challenge","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/riccardogiorato/moonpay-full-stack-challenge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riccardogiorato%2Fmoonpay-full-stack-challenge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riccardogiorato%2Fmoonpay-full-stack-challenge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riccardogiorato%2Fmoonpay-full-stack-challenge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riccardogiorato%2Fmoonpay-full-stack-challenge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/riccardogiorato","download_url":"https://codeload.github.com/riccardogiorato/moonpay-full-stack-challenge/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riccardogiorato%2Fmoonpay-full-stack-challenge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29528251,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T00:57:22.232Z","status":"ssl_error","status_checked_at":"2026-02-17T00:54:25.811Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["challenge","coding-challenge","fullstack","interview-test","moonpay","take-home-test"],"created_at":"2024-11-07T19:25:47.187Z","updated_at":"2026-02-17T01:03:27.122Z","avatar_url":"https://github.com/riccardogiorato.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cp\u003e\n    \u003cimg src=\"assets/logo_black.svg\" width=\"250\" /\u003e\n  \u003c/p\u003e\n  \u003cp\u003e\n    The new standard for fiat to crypto\n  \u003c/p\u003e\n\u003c/div\u003e\n\n# Take Home Test (Backend \u0026 Frontend)\n\n## Overview\n\nThis is a takehome test for candidates applying for a full-stack developer\nposition at MoonPay. It contains three sections: \"Frontend\", \"Backend\" and \"Follow-up\" which\ntogether include a series of tests involving HTML, CSS, JavaScript and Node.js.\n\nFeel free to solve these questions however you see fit, using whatever coding\nstyle or third-party libraries you think are appropriate.\n\nTo start the test, simply clone this repo and make your edits locally.\n\n## Frontend\n\nFor the frontend portion of the test, use the `/frontend` folder. There are 7 features we'd like to add:\n\n1. Fetch and display the list of currencies available on MoonPay (see endpoint below).\n2. Add CSS to create a responsive layout that will display one column on mobile\n   devices, two columns on tablet devices, and three columns on desktops.\n3. Add a toggle to control if currencies not supported in the US should be displayed.\n4. Add a toggle to control if currencies not available in test mode should be displayed.\n5. Add a button to sort the list of currencies by alphabetical order using the name of the currencies.\n6. Add a button to sort the list of currencies by alphabetical order using the symbol/code of the currencies.\n7. Add a button to apply a random shuffle to the list of currencies when it is clicked.\n\nNOTE: Please make the app be served on port `:3000`.\n\nFeel free to structure the code however you prefer and use third-party libraries at your discretion.\n\nDo not spend too much time on making it beautiful. Basic aesthetics are welcome, but we are not\ngrading your design skills here.\n\n### API Information\n\n- **MoonPay API `GET /v3/currencies` endpoint:** https://api.moonpay.com/v3/currencies\n\n## Backend\n\nFor the backend portion of the test, use the `/backend` folder. We'd like to write some code that achieves the following:\n\n1. Create a JSON API (REST or GraphQL) using Node.js which will return which cryptocurrency exchange we should use to buy a given amount of Bitcoin to minimize the amount of USD or USDT we'll spend on this trade.\n\nExample API call (for 1 BTC):\n\n```\ncurl http://localhost:4000/exchange-routing?amount=1\n```\n\nExample API response (if Coinbase price of \\$10,000 / BTC is the cheapest):\n\n```\n{\n  \"btcAmount\": 1,\n  \"usdAmount\": 10000,\n  \"exchange\": \"coinbase\"\n}\n```\n\n2. You'll need to compare Binance and Coinbase [order books](https://www.investopedia.com/terms/o/order-book.asp) and compute the best execution price for the given amount of Bitcoin we want to buy. (You can assume that 1 USDT = 1 USD at all time.)\n3. [Bonus] Add a third exchange to compare with Binance and Coinbase.\n\nFeel free to structure the code however you prefer and use third-party libraries at your discretion.\n\nNOTE: Please make the server listen on port `:4000`.\n\n### API Information \u0026 Documentation\n\n- **[Crypto Trading 101: How to Read an Exchange Order Book](https://www.coindesk.com/crypto-trading-101-how-to-read-an-exchange-order-book)**\n- **[Binance Order Book API Endpoint](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md#order-book)**\n- **[Coinbase Order Book API Endpoint](https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getproductbook)**\n\n_Note that both APIs above are public and don't require any authentication._\n\n## Follow-up\n\nAnswer the questions in the [FOLLOW-UP.md](./FOLLOW-UP.md) file.\n\n## Docker\n\nThe test contains a basic `docker-compose.yml` file. It uses the latest official NodeJS\nDocker image and creates two containers - one for backend and one for frontend.\n\nThe respective folder is mounted in `/app` directory inside the container.\n\nIt isn't a requirement to use it, but may be convenient.\n\nNOTE: We WILL run your code inside these containers.\n\n## Submitting Your Code\n\nOnce you've completed the test, please compress your files (via zip or tar) and\nreturn them as a link or email attachment in reply to your test invite. We'd like the\ncode in your submission to remain private, so please avoid committing or pushing\nthe code publicly.\n\n**Do not include node_modules or .git in your submission**\n\nOnce we receive it, a member of our team will review and we'll get back to you\nas soon as possible.\n\nThanks!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friccardogiorato%2Fmoonpay-full-stack-challenge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Friccardogiorato%2Fmoonpay-full-stack-challenge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friccardogiorato%2Fmoonpay-full-stack-challenge/lists"}