/tariff-comparison

A simple application that receives as input the annual consumption of the user (in KWh) and shows how much would cost (in Euros) each of the available products

Primary LanguageTypeScript

tariff-comparison

A simple application that receives as input the annual consumption of the user (in KWh) and shows how much would cost (in Euros) each of the available products

Prerequisites

To run the project it is necessary to have installed nodejs and npm under your machine

Installation

Run npm install at the project root folder.

Running the project

Run npm start at the project root folder, therefore the results of each comparison will be printed at the console.

Running and watching test results

Run npm run start-test-watch at the project root folder. The result of the comparison will be printed (just like the option npm start) and besides that all the test cases will be executed and it will be shown.

Changing input parameters

To execute the comparison with different values, open the file app.ts into the src folder and write on it another calls of the method showTariffComparison with any value do you want.