Skip to content

vany-egorov/revolut-exchange

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to Use

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

Config

Main development configuration file

Randomize endpoint:

{api: {
  randomize: true, // randomize/mock API data
}}

Poll period:

{api: {
  pollPeriod: 30 // seconds
}}

Hot Keys

Key Description
z Previous currency
x Next currency
s Swap currencies
TAB Cycle between accounts/inputs

Task

Meta:

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