@alpha_anas/atm-system
v1.0.0
Published
This ATM System application simulates basic ATM functionalities such as checking account balance, depositing money, withdrawing money, and exiting the system.
Downloads
1
Readme
ATM System
Application Walkthrough
This ATM System application simulates basic ATM functionalities such as checking account balance, depositing money, withdrawing money, and exiting the system.
Features
- Check Balance: View the current balance in your account.
- Deposit Money: Add a specified amount of money to your account.
- Withdraw Money: Withdraw a specified amount of money from your account.
- Exit: Exit the ATM system.
Run the Application on CLI:
npm i **\_\_\_**
npx ****\_****
when all the dependencies are successfully installed you can build and run the project using the
below mentioned command :
tsc && node index.js
Prerequisites
Before running the application, ensure you have the following installed:
Installation
Clone the repository:
git clone https://github.com/yourusername/atm-system.git cd atm-system
Install the dependencies:
npm install
Usage
Start the application:
npm start
Follow the on-screen prompts to interact with the ATM system.
User Guide
- Starting the ATM System:
- Upon running the application, you will be presented with a menu of options.
- Options Menu:
1. Check Balance
: Displays the current balance in your account.2. Deposit Money
: Prompts you to enter an amount to deposit. After entering the amount, your balance will be updated accordingly.3. Withdraw Money
: Prompts you to enter an amount to withdraw. If the amount is available in your balance, it will be deducted. Otherwise, an error message will be displayed.4. Exit
: Exits the ATM system.
Example Interaction
Menu Display:
Welcome to the ATM System 1. Check Balance 2. Deposit Money 3. Withdraw Money 4. Exit
Checking Balance:
Your current balance is $1000
Depositing Money:
Enter the amount to deposit: 200 You have successfully deposited $200. Your new balance is $1200.
Withdrawing Money:
Enter the amount to withdraw: 500 You have successfully withdrawn $500. Your new balance is $700.
Exiting the System:
Thank you for using the ATM System. Goodbye!
Development
Run/ Edit the Application on IDE:
Clone or download the zip of the folder from : `LINK TO BE INSERTED HERE`
`Then run the following commands to install the DEPENDENCIES : `
```
tsc --init
npm init -y
npm install inquirer
npm i --save-dev @types/inquirer
```
To contribute to the development of the ATM System:
- Fork the repository on GitHub.
- Clone your fork locally:
git clone https://github.com/yourusername/atm-system.git cd atm-system
- Create a new branch for your feature or bugfix:
git checkout -b feature-or-bugfix-name
- Make your changes and commit them:
git add . git commit -m "Description of changes"
- Push your changes to your fork:
git push origin feature-or-bugfix-name
- Create a pull request on GitHub.