- Project — TypeScript - Tips Counter
- Project Technologies
- Start Project
At the end of the shift, the tip jar is full. The waiter has to count and arrange the coins in rolls, go to the bank and exchange them for the notes. For this exercise, let's assume that there are only coins with denominations lower than €1 in the jar.
The project was created with using TypeScript. It assumed to create counter function which quickly count the tips and return clear information with quantity of rolls and rest in depends of denomination of coin. All functions are tested with using JEST.
After clone the project, please remember to start with
npm install
to install all dependencies.
To start the project you can use the command
npm start
To run the application tests, follow these steps:
- Install dependencies with command:
npm install
(if you haven't already done so before). - Run the tests by running the command:
npm run test
.