ATM (Automated Teller Machine) CLI (Command Line Interface) with Javascript
Demo
Command Line Interface (CLI) to simulate an interaction of an ATM with a retail bank.
Commands
-
login [name]- Logs in as this customer and creates the customer if not exist -
deposit [amount]- Deposits this amount to the logged in customer -
withdraw [amount]- Withdraws this amount from the logged in customer -
transfer [target] [amount]- Transfers this amount from the logged in customer to the target customer -
logout- Logs out of the current customer