Giter VIP home page Giter VIP logo

sales-taxes-problem's Introduction

Farmscape Assigment (luduvigo) ๐Ÿš€

Project done by Paolo Antonio Rossi (luduvigo) as an assignment for Farmscape.

Project Specs

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.

Technologies used

  • 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.

How to run this project

To install the project you need to run the following command

  • npm install

To run the project from your terminal you can run the following command

  • npm start

To execute the unit tests from your terminal you can run the following command

  • npm run test

package.json file

{
  "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"
  }
}

Project Structure

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.