Skip to content

Sahibdev/BunningsCodeChallenge

Repository files navigation

BunningsCodeChallenge

Setup

System would require node and yarn.

For node: please visit https://nodejs.org/en/

For yarn: please visit https://classic.yarnpkg.com/en/docs/install

Once yarn is installed, Please clone the project and run yarn in project folder. This will install all the dependencies for project.

Running

yarn start - will run the project.

This will need following files to run

  • inputFiles/barcodesA.csv
  • inputFiles/barcodesB.csv
  • inputFiles/catalogA.csv
  • inputFiles/catalogB.csv
  • outputFile/

On Successful run, output will be: Output Succesfully written in ./output/result.csv

The results would be saved in ./output/result.csv.

Testing

yarn test - will run test with coverage report.

Configuration

If the file name in different then mentioned above.

  • ./constants.js can be configured to handle different file name.

Exceptions

When input files are not correctly formatted. Te user will receive following error

  • Cannot Parse File followed by path and filename.

When output path is not created or output file does not have premission to overwrite

  • Please check output folder is present and todos.csv have permissions

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published