This is a simple Currency Converter application built with React. It allows users to convert amounts between different currencies using real-time exchange rates. The application is designed to be user-friendly and responsive, making it easy for users to perform currency conversions on any device.
- Select Currencies: Users can choose the currencies they want to convert from and to, with a variety of options available.
- Input Amount: Users can input the amount they wish to convert, and the application will handle the conversion based on the latest exchange rates.
- Real-Time Exchange Rates: The application fetches the latest exchange rates from a reliable API, ensuring that users always have up-to-date information.
- Swap Currencies: With a single button click, users can easily swap the currencies they are converting between, enhancing usability.
- React: A JavaScript library for building user interfaces, allowing for a dynamic and responsive application.
- Axios: A promise-based HTTP client for making API calls to fetch exchange rates.
- CSS Modules: For styling components, ensuring that styles are scoped locally to avoid conflicts.
- Clone the repository:
git clone https://github.com/yourusername/currency-converter.git
- Navigate to the project directory:
cd currency-converter
- Install the dependencies:
npm install
- Start the development server:
npm run dev
- Open your browser and go to
http://localhost:5173
to view the application.
The application fetches exchange rates from the ExchangeRate API. The base URL used in the application is: