1.0.0 • Published 1 year ago

@farhanbarcha/typescript-piaic-atm v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

typescript-piaic-atm

A CLI based ATM machine created using TypeScript and Inquirer.

Overview

This is a Command Line Interface (CLI) based ATM (Automated Teller Machine) application built using TypeScript, Inquirer, and Chalk. The application allows users to perform basic banking transactions such as checking balance, withdrawing cash, and cancelling transactions.

Features

  • PIN Code Authentication: Users are required to enter a PIN code to access their account. After a certain number (three tries) of failed attempts, the account gets blocked.
  • Transaction Options: Users can choose from options like checking balance, withdrawing cash, or cancelling the transaction.
  • Cash Withdrawal: Users can withdraw cash in denominations of 1000 or 5000, or enter a custom amount (multiples of 500).
  • Balance Display: The application displays the user's current account balance after each transaction.

Setup

  1. Clone the repository to your local machine.
  2. Install dependencies using npm:
    npm install
  3. Run the application:
    npm start

Usage

  • Upon running the application, follow the on-screen prompts to navigate through the ATM options.
  • Enter your PIN code to access your account.
  • Select transaction type (check balance, withdraw cash, cancel).
  • If withdrawing cash, choose from available denominations or enter a custom amount.
  • After each transaction, the application displays the updated account balance.
  • To exit the application, choose the cancel option.

License

This project is licensed under the MIT License.

1.0.0

1 year ago