This Currency Converter is a simple Command Line Interface (CLI) application that uses the ExchangeRate-API to convert amounts from one currency to another. It's built with C# and is intended for users who prefer quick, command-line interactions.
- Convert amounts between different currencies.
- Uses the ExchangeRate-API for up-to-date currency conversion rates.
- Simple and easy-to-use CLI.
- .NET SDK
- An API key from ExchangeRate-API
- Clone the repository:
git clone https://github.com/GuigaBytes/CurrencyConverter.git
- Navigate to the project directory:
cd CurrencyConverter/CurrencyConverter
- Copy the file named 'appsettings.json.example' in the project directory:
cp appsettings.json.example appsettings.json
- Open 'appsettings.json' and insert your API key from ExchangeRate-API.
- Build the project:
dotnet build
Run the application with the following command format:
dotnet run <amount> <from> <to>
Or
dotnet run <from> <to>
dotnet run 100 USD EUR
Or:
dotnet run USD EUR
dotnet test