Skip to content

haiphan/calcSalary

Repository files navigation

Salary Calculation

Install libraries

Install with npm.

$ npm install

Run from command line

Read from CSV file and output salary to command line.

$ node calcSalary HourList201403.csv
# or
$ npm run cmd

REST API

A server is run to provide data for salary.

GET /salary/:id

If the user id is matched data will be returned in JSON format.

To run the server

$ npm start

Testing

We are using jest for testing. Test files are located in dir.

__test__

Run all tests with

$ npm test

About

Calculate salary based on data on CSV file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published