- Github repo containing the code to the solution
- Document any assumptions/considerations that you have made
- Instructions on how to run the project
- All relevant tests
- You want people to help out. If you don’t have documentation, you will miss out on a whole class of contributors
- You want to be a better writer
- Should show a widget component with currency rate calculator
- Should show component for Buy and Sell calculator
- Should show the rate of selected currency equivalent to base currency (default to EUR)
- Should be able to select currency
- Should be able to input amount
- Should show the total calculated value
- Should be able to update the total value if currency or amount is changed or updated
Clone the repository, navigate to fx-rate-widget
folder and run npm install
to install all dependencies.
Run npm run start
or ng serve --open
for a dev server. Navigate to http://localhost:4200/ and test base on the acceptance criteria posted above.
Note before testing
Please update first the expectedData on the fx-rates.service.specs.ts
as it will be outdated during testing.
The exchangeratesapi
returned data contains date and timestamp on it which cause it to be outdated. You can get the latest
data by clicking this link here
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.