Install and build this app with:
$ cd revolut-exchange
$ yarn
$ yarn server
or with npm:
$ cd revolut-exchange
$ npm i
$ npm run server
And open http://127.0.0.1:1024.
production build:
$ cd revolut-exchange
$ yarn
$ yarn prod
$ ls -lah ./dist
Main development configuration file
Randomize endpoint:
{api: {
randomize: true, // randomize/mock API data
}}
Poll period:
{api: {
pollPeriod: 30 // seconds
}}
Key | Description |
---|---|
z | Previous currency |
x | Next currency |
s | Swap currencies |
TAB | Cycle between accounts/inputs |
Meta:
-
Open the current Revolut app, on either iOS or Android, and navigate to the exchange screen.
-
Implement the functionality of this screen in your own custom web widget using the FX rates from either source:
Explicit Requirements:
- Your app should poll the endpoint every 30 seconds to get the latest rates for GBP, EUR and USD. (The API provides close of day FX rates. We expect you to request the new rate every 30s. We do not expect the rate to change every 30s)
- Focus more on code design rather than UI. If you have time at the end of the task, please try and adapt the Revolut UI for web along with styling where possible.
Implicit Requirements:
- The code produced is expected to be of a high standard.
Please put your work on Bitbucket, or Github.
Video to see how it works: https://www.youtube.com/watch?v=c0zPSiKYipc