This is a simple webpage that allows you to convert currencies using the ExchangeRate API and display country flags using the Flag API. The webpage also features a dynamic background created using Vanta.js.
- HTML
- CSS
- JavaScript
- ExchangeRate API
- Flag API
- Vanta.js
- Currency conversion: Enter an amount in one currency and convert it to another currency using the ExchangeRate API.
- Country flags: Display the flags of the countries corresponding to the selected currencies using the Flag API.
- Dynamic background: The webpage has a visually appealing dynamic background created using Vanta.js.
-
Clone the repository:
git clone https://github.com/your-username/currency-converter.git
-
Open the
index.html
file in your web browser. -
Start converting currencies!
To use the ExchangeRate API and Flag API, you will need to obtain API keys. Follow the instructions below to get your API keys:
-
ExchangeRate API: Visit the ExchangeRate API website and sign up for an account. Once you have an account, you will receive an API key.
-
Flag API: Visit the Flag API website and sign up for an account. After signing up, you will receive an API key.
-
Open the
script.js
file. -
Replace the placeholder values for the ExchangeRate API key and Flag API key with your actual API keys.
const exchangeRateApiKey = "YOUR_EXCHANGERATE_API_KEY"; const flagApiKey = "YOUR_FLAG_API_KEY";
-
Save the file.
This project is licensed under the MIT License.