daniyalsarwar00786_project_atm
v1.0.2
Published
A simple Atm Machine CLI based implemented in oop
Downloads
7
Readme
Dani's ATM
This is a simple ATM simulator built in Node.js. It uses the inquirer
, chalk
, and figlet
packages to provide a command-line interface for ATM operations.
Features
User Login: Users can log in using their account number define in Database Class. If the account number is not found or the account is locked, an error message is displayed.
PIN Authentication: After entering the account number, users are prompted to enter their PIN. If the PIN is incorrect, the user has three attempts before the account is locked.
Transaction Options: Once logged in, users can choose from the following options:
- Check Balance: Displays the current account balance.
- Deposit: Prompts the user to enter an amount to deposit into the account.
- Withdraw: Prompts the user to enter an amount to withdraw from the account.
- Fast Withdrawal: Allows the user to quickly withdraw preset amounts (100, 200, 500, 1000, 5000).
- Transaction Logs: Displays a history of the account's transactions.
- Exit: Ends the session and exits the program.
How to Run
- Ensure that Node.js is installed on your system.
- Clone this repository.
- Navigate to the repository folder in your terminal.
- Run
npm install
to install the necessary packages. - Run
node main.js
to start the program.
Note
This is a simple simulator and does not connect to a real bank account. It is intended for demonstration purposes only.