a5okol / commission-calculator-task

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Commission Fee Calculator

Description

This project calculates commission fees for cash in and cash out operations based on the given rules.

How to Run

  1. Install dependencies:

    npm install
    
  2. Create a .env file in the root of the project and add the following line, replacing your_api_url with the actual API URL:

    API_URL=your_api_url
    
  3. Run the application:

    npm start
    

How to Run input example

Run command with the path to the input file:

npm run runExample assets/input.json

How to Test

Run the tests:

npm test

About


Languages

Language:TypeScript 94.7%Language:JavaScript 5.3%