Skip to content

ewojjowe/fx-rate-widget

Repository files navigation

FX Rate Widget

The Documentation Compendium


Table of Contents

Deliverables:

  • 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

Acceptance Criteria:

  • 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

How To Run And Manual Test:

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.

Running Unit Tests:

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.

Running E2E Tests:

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published