Skip to content

SachinKalsi/currency-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

currency-api

API for currency conversion

Getting Started

  1. Sign up for currencylayer & get the access-key
  2. Set up the environmental variables in .env file
  3. npm install
  4. npm start
  5. Go the browser & type http://localhost:3000 (depending on the port number you specified in .env file)

Prerequisites

  1. Node JS ( Any version > 5.0.0)
  2. NPM (Any version 3.8.0)
  3. MongoDB

Built With

  • Node - A JavaScript runtime built on Chrome's V8 JavaScript engine
  • Express - A web framework for Node.js
  • MongoDB - NoSQL database

API Endpoints

  1. GET - currency list
  2. GET - currency conversion

Please refer here for detailed documentation

P.S: The real-time currency rates are updated every one minute

Valid Currencies

AED,AFN,ALL,AMD,ANG,AOA,ARS,AUD,AWG,AZN,BAM,BBD,BDT,BGN,BHD,BIF,BMD,BND,BOB,BRL,BSD,BTC,BTN,BWP,CRC,CUC,CUP,CVE,CZK,DJF,DKK,DOP,DZD,EEK,EGP,ERN,ETB,EUR,FJD,FKP,GBP,GEL,GGP,GHS,GIP,GMD,GNF,GTQ,GYD,HKD,HNL,HRK,HTG,HUF,IDR,ILS,IMP,INR,IQD,IRR,ISK,JEP,JMD,JOD,JPY,KES,KGS,KHR,KMF,KPW,KRW,KWD,KYD,KZT,LAK,LBP,LKR,LRD,LSL,LTL,LVL,LYD,MAD,MDL,MGA,MKD,MMK,MNT,MOP,MRO,MUR,MVR,MWK,MXN,MYR,MZN,NAD,NGN,NIO,NOK,NPR,NZD,OMR,PAB,PEN,PGK,PHP,PKR,PLN,PYG,QAR,RON,RSD,RUB,RWF,SAR,SBD,SCR,SDG,SEK,SGD,SHP,SLL,SOS,SRD,STD,SVC,SYP,SZL,THB,TJS,TMT,TND,TOP,TRY,TTD,TWD,TZS,UAH,UGX,USD,UYU,UZS,VEF,VND,VUV,WST,XAF,XAG,XAU,XCD,XDR,XOF,XPF,YER,ZAR,ZMK,ZMW,ZWL,BYN,BYR,BZD,CAD,CDF,CHF,CLF,CLP,CNY ,COP

Update: The heroku app link (https://free-currency-converter.herokuapp.com/) might not work. The heroko has made some restrictions on free dynos