currency-converter

Currency Converter Extension

The Currency Converter Extension is a browser extension designed to help users convert currencies globally with real-time exchange rates. It fetches the latest rates every hour, provides instant updates, and includes features for currency reversal and display of the last updated time.

Table of Contents

Features

Technologies Used

Usage

  1. Select Currencies: Choose the ‘From’ and ‘To’ currencies from the dropdown menus.
  2. Enter Amount: Input the amount you wish to convert.
  3. Convert: Click the Convert button to see the converted amount.
  4. Reverse: Click the ↔️ button to swap the ‘From’ and ‘To’ currencies.
  5. View Last Updated Time: Check the bottom of the extension popup to see when the rates were last updated.

Installation

To install the Currency Converter Extension, follow these steps:

  1. Clone the Repository:

    git clone https://github.com/Charan-Repala/currency-converter.git
    cd currency-converter-extension
    
  2. Load the Extension in Your Browser:

    • Open Chrome and go to chrome://extensions.
    • Enable Developer mode (toggle switch at the top right).
    • Click on Load unpacked.
    • Select the directory where you cloned the repository (currency-converter-extension).
  3. Configure the API Key:

    -Open background.js and popup.js.

    • Replace the placeholder apiKey value with your own Currency API key.

Getting the API Key

To obtain the API key needed for fetching exchange rates:

  1. Go to Currency API.
  2. Sign up for an account if you don’t already have one.
  3. Log in to your account and navigate to the API Keys section.
  4. Generate a new API key or use an existing one.

Adding the API Key

  1. Open background.js and popup.js.
  2. Find the line with const apiKey.
  3. Replace the placeholder apiKey value with your own API key from Currency API.

    const apiKey = 'your_api_key_here';
    

Project Structure

CurrencyConverterExtension/
├── icons/
│   ├── icon16.png
│   ├── icon48.png
│   └── icon128.png
├── popup.html
├── popup.css
├── popup.js
├── background.js
├── manifest.json
└── README.md

Components

Styling

Extension-Images

Currency Converter Extension Currency Converter Extension

We will receive the notifications about price changes.

Currency Converter Extension

Contribution

Contributions are welcome! Please fork the repository and submit a pull request with your changes.

Thank you for using the Currency Converter Extension!