Skip to content

groupbwt-admin/node-js-commission-fees-task

Repository files navigation

Commission fees task

To run demo

cp .env.example .env
npm i
node app.js input.json

To run tests

npm run test

To run tests with coverage

npm run coverage

Some places that need to be improved or changed as the project expands:

  • Change CashCommission model. We need to move asynchronous data getters to another location, and standardize the model. Suggested structure for this model:
{
    cash_operation_type: string,
    user_type: string,
    rules: [
        {
            rule: string, //min, max, week_limit
            amount: number,
            currency: string
        }
    ]    
}
  • Move User.transactionsHistory to a separate model

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published