To run this application you will need the node.js installed;
After clone the repo run the follow command to install the node dependencies:
npm install
With the dependencies installed run the server with the following command:
npm start
To run the implemented tests use the following command:
npm test
The solution run on port 3001 and have only one endpoint: (you can use your browser to make a GET request for this endpoint)
http://localhost:3001/tariff/:consumption
:consumption = number value to be calculated