This project is a solution to a specification of the operaiton of a hypothetical vending machine.
I wrote this in Angular, and it can be accessed here: http:https://vendingmachine.chrisbezzina.com/
Here are the assumpions I've made:
- Only tracking cash as a total, I'm not tracking each size of coin or note individually.
- I'm splitting the UI into two views: User and Admin. User is for purchasing and Admin is for viewing payment details, inventory and restocking
- The flavours and prices of the drinks cannot be modified, and no new flavours can be created. If I were to keep working at the project then editing the drniks list would be the next feature added.
- I'm tracking the history of the card payments made with a timestamp for each payment. I haven't done this for cash payments or tracking what drinks are purchased.