This project is a currency converter app built with React and Vite. Users can input an amount, select currencies, and convert values using the latest exchange rates from CurrencyAPI. The app provides real-time currency calculations based on up-to-date exchange rates.
- Real-time currency conversion.
- Accurate results using the latest exchange rates.
- User-friendly interface with quick response times.
To use this project:
- You will need a CurrencyAPI key. You can obtain your API key by signing up with your Google account at CurrencyAPI and logging in.
- Clone the Repository:
git clone https://github.com/your-username/currency-converter.git cd currency-converter - Install Dependencies:
npm install
- Configure the API Key:
Open the src/Currency.jsx file.
Update the API_KEY variable with your personal API key:
let API_KEY = "paste_your_own_api_key_here";
- Run the Project:
npm run dev
Build the Project:
Generate deployment files in the dist folder:
npm run buildThis command creates an optimized production version of the app.
- GitHub Pages: Configure the
basesetting invite.config.jsto/repo-name/and deploy using GitHub Actions. - Netlify: Deploy directly by selecting the
distfolder or use Netlify CLI withntl deploy. - Vercel: Deploy with
vercel deployusing the Vercel CLI or integrate via git. - Firebase: Deploy using
firebase deploywith a configuredfirebase.jsonfile.