To see my live website go to https://vnessa-su.github.io/currency-exchanger/
A user is able to input an amount, select the currency and then convert it into another selected currency or convert into all available currencies. This application calls the ExchangeRate API to calculate the conversion, get conversion rates, and populate the list of available currencies.
- Input an amount
- Choose the currency of the amount
- Choose the currency to convert to
- Press the
Convert
button to convert amount to target currency - Press the
Conver to All Currencies
button to convert to all available currencies - Display the original amount and currency, as well as the converted amount and currency
- Display any input, API fetch, and response errors
- Press the
Clear Form
to clear the form and any displayed information
- HTML
- CSS
- JavaScript
- Node
- VSCode
- Webpack
- ExchangeRate-API
- Clone the repository:
$ git clone https://github.com/vnessa-su/currency-exchanger.git
- Navigate to the
/currency-exchanger
directory on your computer - Open with your preferred text editor to view the code base
- To start a development server and view the project in the browser:
- Navigate to
/currency-exchanger
in your command line - Run the command
npm install
to install dependencies - Optionally, run the commmand
npm run build
to make a bundle of the files - Finally, run the command
npm run start
to start a development server
- Navigate to
- To run tests, navigate to
currency-exchanger
in your terminal and run the commandnpm run test
- Go to ExchangeRate-API website
- Enter in your email address and press the
Get Free Key
button - Enter in a password for you account and press the
Accept Terms & Create API Key!
button Your API Key
will be displayed in theAPI Access
section- Create a .env file in the
/currency-exchanger
directory - Open the .env file in your text editor
- Add
API_KEY={Your API Key Here}
to the file, replacing{Your Api Key Here}
with the API key found in step 4
No known bugs
For any questions or comments, please reach out through GitHub.
Copyright (c) 2021 Vanessa Su