Currency converter written in JS with React library. Used this API.
- Ability to select the currency to convert from/to for conversion (with a drop-down list).
- Currencies codes (e.g. EUR) are mapped to their proper names.
- Ability to type into input field amount of currency for conversion (decimal and float numbers greater or equal 1 only. Step = 0.01)
- Real-time date and time (language-sensitive representation).
- A button for swapping selected currencies.
- An activity indicator, which runs every time data is fetched from API.
To run the React Currency Converter on your local machine, follow these steps:
- Clone the repository to your local machine using the following command:
git clone https://github.com/Aleks334/currency-converter
- Navigate to the project directory:
cd currency-converter
- Install the required dependencies:
npm i
- Add .env file in the root directory of project. Include there this line:
VITE_API_KEY=your_api_key
- Run the development server (Vite):
npm run dev