Currency Converter
Currency Converter is a command-line tool written in Rust, designed to enable users to convert amounts between various currencies based on real-time exchange rates fetched from an API.
- Programming Language: Rust
- External Libraries: reqwest for HTTP requests, serde for JSON parsing.
- Fetch real-time exchange rates from a free currency conversion API.
- Function to list all available currencies.
- Calculate and display the converted amount in the target currency, including the exchange rate used for the conversion.
- An interactive interface guiding users through the currency conversion process.
- Caching system providing better application performance.
- Prerequisites:
- Rust programming environment (Cargo and Rust compiler).
- An API key for the currency conversion API (obtain one from the API provider's website(https://exchangeratesapi.io/)).
- Building the Application:
- Clone the repository to your local machine.
- Navigate to the project directory and run cargo build --release to compile the project.
- Running the Application:
- Run the application using cargo run
- Visit the currency conversion API's website and sign up for an API key(https://exchangeratesapi.io/).
- Set the API key in your environment variables or directly in the application as instructed by the API provider.
This project includes a .gitlab-ci.yml file for Continuous Integration and Continuous Deployment using GitLab CI/CD. It covers Docker image building.