A sleek and responsive Currency Converter web application built with Node.js and Express, leveraging real-time exchange rates from the European Central Bank (ECB). Easily convert between multiple currencies with country flags, symbols, and a smooth, interactive UI.
- ✅ Real-time currency conversion using ECB exchange rates
- ✅ Over 40+ global currencies supported
- ✅ Currency flags & symbols for easy identification
- ✅ Swap currencies with a single click
- ✅ Interactive and responsive custom select dropdowns
- ✅ Input validation with error handling
- ✅ Cached rates to minimize API calls and improve performance
- ✅ Mobile-friendly layout with smooth animations
- Backend: Node.js, Express, XML2JS
- Frontend: HTML, CSS, JavaScript
- API: European Central Bank (ECB) reference rates
- Deployment: Render / Railway
Check it out live: Currency Converter on Render
- Node.js v18+
- npm
- Clone the repository:
git clone https://github.com/Sagarika311/currency-converter.git- Navigate to the project folder:
cd currency-converter- Install dependencies:
npm install- Start the server:
node server.js- Open your browser at
http://localhost:3000
- Enter an amount to convert.
- Select the source currency (From) and target currency (To).
- Click Convert to see the converted value.
- Use the swap button to quickly switch between currencies.
currency-converter/
│
├─ public/
│ ├─ index.html # Frontend HTML
│ ├─ styles.css # CSS styles
│ └─ script.js # Frontend JS
│
├─ server.js # Express server & API
├─ package.json
├─ package-lock.json
├─ README.md
└─ screenshots/ # Add screenshots here
- Add/remove currencies by editing
currencyFlagsandcurrencySymbolsinscript.js. - Change theme colors in
styles.cssusing CSS variables.
This project is licensed under the ISC License – see the LICENSE file for details.
