Nodejs and a node package manager, npm are required to run the application.
Use the package manager npm to install dependencies.
git clone https://github.com/iamzee/code-08-09-21-zeeshanadeen
cd code-08-09-21-zeeshanadeen
npm install
Place your JSON data in /dist/data.json file. A sample data.json file is provided in the dist folder.
Build the application.
npm run build
Run the application.
npm start
After a successful run, the resultant JSON data (with 3 new columns - BMI, BMICategory and HealthRisk) will get stored in /dist/result.json file. (Problem 1)
Result related to Problem 2, will get displayed on the console.
Unit Testing the application.
npm run test
Build and Test process is automated using CircleCI pipeline. CircleCI configuration file is included in the application.
The application is tested on 1 million JSON objcts and it works fine.