https://github.com/thestevendev/currencyconverter
Java API currency converter program
https://github.com/thestevendev/currencyconverter
api currency-converter economy java
Last synced: 6 months ago
JSON representation
Java API currency converter program
- Host: GitHub
- URL: https://github.com/thestevendev/currencyconverter
- Owner: TheStevenDev
- Created: 2023-04-14T20:13:32.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-05T16:44:58.000Z (12 months ago)
- Last Synced: 2025-03-29T16:01:55.591Z (7 months ago)
- Topics: api, currency-converter, economy, java
- Language: Java
- Homepage:
- Size: 12.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Currency Converter
This is a simple Java program that allows you to convert currencies using real-time exchange rates.
## Prerequisites
Before running the program, you need to obtain a free API key from [Exchange Rate API](https://www.exchangerate-api.com):
1. Go to [Exchange Rate API](https://www.exchangerate-api.com).
2. Sign up for a free account.
3. After signing up, you will receive an API key.## Setup
1. Clone the repository to your local machine using Git:
```bash
git clone https://github.com/TheStevenDev/CurrencyConverter.git
```
2. Navigate to the project directory:
```bash
cd CurrencyConverter
```
3. Replace `YOUR_KEY` in the `baseUrl` variable within the `myFrame` class in the code with your actual API key:
```java
String baseUrl = "https://v6.exchangerate-api.com/v6/YOUR_KEY/latest/";
```## Usage
1. Compile and run the `Main.java` file using a Java compiler.
2. Follow the instructions to input the amount to convert and select the source and target currencies.
3. Click the "CONVERTI" button to see the converted amount.## License
This project is distributed under the MIT license. For more information, contact the owner.
## Version Control
You can find the project repository on GitHub: [Currency Converter Repository](https://github.com/TheStevenDev/CurrencyConverter/)