A modern, responsive web application for converting currencies in real-time. Built with React, Vite, and Tailwind CSS with a beautiful glass-morphism UI design.
- Real-time Currency Conversion: Convert between multiple currencies with live exchange rates
- Swap Functionality: Easily swap the source and target currencies with a single click
- Responsive Design: Fully responsive layout that works on desktop, tablet, and mobile devices
- Beautiful UI: Modern glass-morphism design with smooth animations and transitions
- Multiple Currency Support: Access rates for various global currencies
- User-friendly Interface: Intuitive input boxes and conversion controls
- Frontend Framework: React 19
- Build Tool: Vite 8
- Styling: Tailwind CSS 4
- Package Manager: npm
- Linting: ESLint 9
- Clone the repository:
git clone https://github.com/anasshiraz/currencyConvertor.git
cd currencyConvertor- Install dependencies:
npm installStart the development server with hot module replacement (HMR):
npm run devThe application will be available at http://localhost:5173 (or another available port).
Create an optimized production build:
npm run buildPreview the production build locally:
npm run previewCheck for code quality issues:
npm run lintsrc/
├── components/ # Reusable React components
├── hooks/ # Custom React hooks (e.g., useCurrencyInfo)
├── assets/ # Static assets (images, etc.)
├── App.jsx # Main application component
├── App.css # Application styles
├── index.css # Global styles
└── main.jsx # Application entry point
- Enter the amount you want to convert in the "From" input field
- Select the source currency from the dropdown
- Select the target currency from the dropdown
- Click the Swap button to exchange the source and target currencies
- Click the Convert button to calculate the conversion
- The converted amount will appear in the "To" field
- Tailwind CSS configuration can be modified in
tailwind.config.js - Vite configuration is in
vite.config.js - ESLint rules can be adjusted in
eslint.config.js
This project is open source and available under the MIT License.
Anas Shiraz
GitHub: @anasshiraz