/TypeScript-ATM-Machine

ATM machine console application built with TypeScript, utilizing the Inquirer package for user interaction and Chalk for colorful output.

Primary LanguageTypeScript

TypeScript ATM Machine

A simple ATM machine console application built with TypeScript, utilizing the inquirer package for user interaction and chalk for colorful output.

Description

This project is a console-based ATM machine application written in TypeScript. It simulates basic ATM functionalities such as PIN validation, balance checking, and fund withdrawal. Users can interact with the ATM through a series of prompts provided by the inquirer package. Colorful output is achieved using the chalk package to enhance the user experience.

Features

  • User-friendly console interface
  • PIN validation for login
  • Withdrawal of funds with customizable amount or predefined "fast cash" options
  • Checking account balance
  • Colorful output using chalk

Installation

To run the ATM machine, follow these steps:

  1. Clone this repository to your local machine.
  2. Navigate to the project directory in your terminal.
  3. Run npm install to install the dependencies.
  4. Run npm start to start the ATM machine.

Usage

  1. When prompted, enter your PIN code to log in.
  2. Select the desired operation from the menu (withdraw or check balance).
  3. Follow the prompts to complete the selected operation.
  4. Enjoy the colorful output provided by chalk!

Contributing

Contributions are welcome! If you have any ideas for improvement or find any issues, feel free to open an issue or submit a pull request.