This simple web app allows You to get actual UAH/USD and UAH/EUR exchange rates delivered directly into Your shell via curl or similar command line tools (wget, HTTPie).
You can access this app from a shell via curl curls.top
command:
- App can return weekly history of UAH/USD and UAH/EUR exchange rates as ANSI escaped text on request of shell tools like curls or HTTPie
- App uses following sources to get information:
- National Bank of Ukraine
- PrivatBank - rates actual for payment cards operations
- Minfin - average "BlackMarket" rates
- Rates are updated every 15 minutes, Redis is used as a storage
To deploy this app locally You will need:
- Clone project repository
- Install Node.js
- Install project dependencies via
npm install
- Request API Key from Minfin
- Set environment variable
export MINFIN_KEY=[Your_unique_key]
- Install and start Redis
- Start app via Node (pm2 etc...):
node app.js
- App will listen to
52190
port onlocalhost
- App will download actual exchange rates in 15 min
- You can request data from the app via
curl localhost:52190
shell command
- FrontEnd :)
- Suggestions?