- Make sure you have got
node
andnpm
installed. Note: version 7 was used for this. You can change the node version easily by installingnvm
(node virtual machine). cd
into the folder and runnpm install
- Note: if you installed
nvm
, then runnvm install 7
, and thennvm use 7
- Note: if you installed
- Run
npm start
- Run
npm test
- I assumed the main part of the exercise was calculating the payslip, so didn't bother much in the file index.js, where I read a csv file and parse it. I would have used JSON files for simplicity (especially because I'm usin NodeJS), however since the exercise mentioned CSV I sticked to it.
- Would have added more unit tests covering all the possible ranges for the payslip service.