MoneySuperMarket have gone Bitcoin crazy and decided to allow their customers to keep an eye on the best exchanges with the highest selling price.
This application calls the below Bitcoin exchanges to retrieve selling price information:
It finds the exchange with the best (highest) price and returns the price and the exchange name.
- Download and install Node Version Manager or make sure you're running an LTS copy of Node
- Clone this repo (https://github.com/MSMGCustomerPlatform/backend-task-node) into a folder of your choice i.e. <your_code>.
- Open your IDE of choice, and open/import the <your_code> folder.
- Open a terminal navigate to the ./<your_code> folder and either
npm installoryarndependant on your preference - Execute:
npm run testto run tests. - Execute:
npm run startand ensure the project builds and runs successfully
We've done a deal with a new exchange and would like to include their prices in the application. Feel free to refactor the existing code as you see fit so that it adheres to SOLID principles.
The new Api is: https://api.bitfinex.com/v1/pubticker/btcusd
(hint - you'll need the ask price)
The application responds on http://localhost:3000/exchangeapp/highestprice/
Finished early? We'd also like to look at including a parameter to expand beyond just USD selling prices.
- NPM
- Jest