A simple and interactive web application to convert currencies in real time using exchange rates fetched from an external API. The app displays the selected currencies' flags for a visually appealing user experience.
- Convert currencies using up-to-date exchange rates.
- Select currencies from dropdown menus with flags for better identification.
- Automatically updates exchange rates when currencies are changed.
- Pre-selected defaults: USD to INR for quick conversion.
- Clone the repository to your local machine:
git clone https://github.com/yourusername/CurrencyConverter.git
- Navigate to the project directory:
cd CurrencyConverter
- Open the
index.html
file in your web browser:- You can use any browser to view the app (no server setup is required).
- Enter the amount you wish to convert in the "Enter Amount" field.
- Select the "From" and "To" currencies from the dropdown menus.
- Click the "Get Exchange Rate" button to view the converted value.
- The app will fetch the latest exchange rate and display it below the dropdowns.
- HTML5: For structuring the web page.
- CSS3: For styling the user interface.
- JavaScript: For functionality and API integration.
- Currency API: Currency API for real-time exchange rates.
- Flags API: Flags API for displaying currency flags.
CurrencyConverter/
│
├── index.html # Main HTML file
├── style.css # CSS file for styling
├── app.js # Main JavaScript logic for the app
├── code.js # Data containing country codes and currencies
└── README.md # Project documentation (this file)
We welcome contributions! Here's how you can help:
- Fork the repository.
- Create a new branch:
git checkout -b feature-name
- Make your changes and commit:
git commit -m "Add feature-name"
- Push to your fork:
git push origin feature-name
- Create a pull request.
This project is licensed under the MIT License. See the LICENSE file for more details.
Feel free to let me know if you’d like to add any specific sections or more details!