Skip to content

gerisztein/atm-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

atm-node

TL;DR

After installing all the dependencies, run the setup script

$ yarn setup

and then, the application itself

$ yarn start

Description

This is an exercise that simulates an ATM (Cash Machine).

The rules are simple:

  • It should always deliver the lowest number of bills
  • It's possible to get the amount requested with available bills
  • The client balance is infinite
  • Amount of bills/money is infinite
  • Available bills and currency must be defined in the configuration

Installation

Clone the repository and then go to the folder

$ git clone git@github.com:gerisztein/atm-node.git
$ cd atm-node

Install all the dependencies

$ yarn install

Setup

$ yarn setup

Run the ATM

$ yarn start

License

MIT License © Lucas Gerisztein

Releases

No releases published

Packages

No packages published