This webpage will take an amount entered in one currency and use ExchangeRate-API to give your currency back in various countries.
| Spec | Input | Output |
|---|---|---|
| The program will take user inputted currency amount and user inputted choice of currencies and make an API call to calculate the rate of exchange | 100.00 / USD / EUR | 91.9 (at time of test exchange rate may have changed) |
| The program will display an error if the API call results in an error | 100.00 USD / EUR / Submit | There has been an error processing your request |
| The program will display an error if the user chooses a currency that does not exist | 100. USD / GGG / Submit | We do not have info on this currency. |
- Visit the following link: https://github.com/Khanjo/currency-exchange
- Clone the repository to your desired directory.
- Go to https://www.exchangerate-api.com/ and create a free account to get an API key
- Open currency-exchange directory with VS Code or your preferred code editor
- create a .env file in the root directory and add API_KEY = {YOUR_API_KEY} to it.
No Known Bugs
- HTML
- CSS
- Javascript
- Webpack
- ExchangeRate-API
Copyright (c) 2023 Joshua Khan