I had heard that NodeJs was a brilliant to make high concurrency applications like API.
So I set out to make a project and thought I should make a forex API.
This API is made using NodeJS based web framework called
And it used Redis as a database:
sorted set“rates” for differnt currency rates in terms of USD.
string“timestamp” to set date of update, updated once daily.
hashto store list of currencies with their symbols for resolution.
The features available are:
You can get rates by making a GET request at:
You can get the list of available currencies by:
For example, for conversion of 2 GBP to INR you need to:
The result is:
The problem I had was with the asynchronous nature of all I/O functions, and this was a good experiment for me to learn about
This project has helped me with: