A simple ATM machine console application built with TypeScript, utilizing the inquirer
package for user interaction and chalk
for colorful output.
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.
- 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
To run the ATM machine, follow these steps:
- Clone this repository to your local machine.
- Navigate to the project directory in your terminal.
- Run
npm install
to install the dependencies. - Run
npm start
to start the ATM machine.
- When prompted, enter your PIN code to log in.
- Select the desired operation from the menu (withdraw or check balance).
- Follow the prompts to complete the selected operation.
- Enjoy the colorful output provided by
chalk
!
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.