Skip to content

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

Notifications You must be signed in to change notification settings

matheusdsb/tariff-comparison

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published