A simple web-based currency converter built with HTML, CSS, and JavaScript. It allows users to convert between multiple currencies (USD, EUR, GBP, RUB, KZT, UAH) using real-time exchange rates fetched from the ExchangeRate-API.
Check out the live version here: Currency Converter
- Convert between USD, EUR, GBP, RUB, KZT, and UAH.
- Displays current exchange rates relative to USD.
- Real-time conversion as you type or change currencies.
- Responsive design using Bootstrap 4.
The application fetches exchange rates from the ExchangeRate-API using an API key embedded in app.js
. The rates are displayed in a grid, and users can input an amount in one currency to instantly see the converted value in another.
-
Clone the repository:
git clone https://github.com/digitalgl/Converter_valut.git
-
Navigate to the project folder:
cd Converter_valut
-
Open
index.html
in a browser:- Double-click
index.html
, or - Use a local server (recommended) like Live Server in VS Code for a better experience.
- Double-click
-
Ensure an internet connection:
- The app requires internet access to fetch exchange rates from the API.
Note: The API key is currently hardcoded in app.js
. For security, avoid exposing sensitive keys in production projects.
The project is deployed on GitHub Pages and accessible at the link above. To deploy your own version:
- Push the project to a GitHub repository.
- Go to Settings > Pages in your repository.
- Set the source to the main branch (or the branch containing your files).
- Ensure all files (
index.html
,style.css
,app.js
) are in the root directory.
- The API key is embedded in
app.js
, making it publicly visible. For a production environment, consider using environment variables and a backend proxy. - GitHub Pages is a static hosting service, so dynamic server-side features are not supported.
Feel free to fork this repository and submit pull requests with improvements! Suggestions for better security practices or UI enhancements are welcome.
This project is open-source and available under the MIT License.