Project done by Paolo Antonio Rossi (luduvigo) as an assignment for Farmscape.
All the specs for this project can be found here.
Mainly the objective is to create a program that can take as input a list of items and calculate price and taxes for all the list of items.
- The project has been implemented in Node.js.
- All the dependencies were installed with npm.
- Unit testing has been implemented using Jest.
- The project has been done with the objective of reducing as much as possible all the external dependencies. The only dependency in the package.json file is the dev dependency to install Jest.
To install the project you need to run the following command
To run the project from your terminal you can run the following command
To execute the unit tests from your terminal you can run the following command
{
"name": "farmscape-assignment",
"version": "1.0.0",
"description": "Farmscape Assigment",
"main": "app.js",
"scripts": {
"start": "node src/app.js",
"test": "jest"
},
"keywords": ["test", "farmscape"],
"author": "luduvigo (Paolo Antonio Rossi)",
"license": "ISC",
"devDependencies": {
"jest": "^26.6.3"
}
}
Folder | Description |
---|---|
src | Folder containing the main application files |
src/utils | Folder containing utility libraries - at the moment we have only one simple library that tells us we |
static | Folder containing different input files that contain the lists used to generate the basket and compute the output |
__tests__ | Folder with the Jest unit tests developed building the project using TDD |