Now this web application simply helps you check the live foreign currency exchange rates for the following FX currencies:
- US Dollar (USD)
- Euro (EUR)
- British Pound (GBP)
- Canadian Dollar (CAD)
- Australian Dollar (AUD)
- Japanese Yen (JPY)
- Nigerian Naira (NGN)
- South African Rand (ZAR)
- Emirati Dirham (AED)
The live exchange rates are updated once a day at 00:00 UTC.
Go to https://www.exchangerate-api.com/ to get a free api key to run the code.
Go to the index.js file and insert your API key from https://www.exchangerate-api.com/ in the string of the apiKey variable on line 14 of the index.js file and save.
const apiKey = "";Install all FX Currency Converter packages (Express, Axios, EJS, Nodemon, & Body-Parser) with npm.
Run in the command line:
npm iThen run the next command to start your server:
nodemon index.jsIf successful, you would get the following message logged in your terminal (command line):
[nodemon] 3.1.0
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: js,mjs,cjs,json
[nodemon] starting `node index.js`
Server is running on port 3000.Now visit http://localhost:3000/ on your browser and try out the FX Currency Converter application.