a216_oop_mybank
v1.0.0
Published
This is cli based oop-mybank project.
Downloads
3
Readme
Object Oriented Programming Mybank Project - A Command-Line Banking Application 🏦
Welcome to the OOP MyBank Project! This project demonstrates a simple banking system using Object Oriented Programming in Node.js with the inquirer and chalk libraries for a command-line interface.
Features ✨
- Customer Class: Represents customers with properties and a constructor 👨💻
- BankAccount Interface: Outlines the structure of bank accounts 📈
- Bank Class: Manages customers and bank accounts, including methods for adding customers, adding accounts, and updating transactions 🏦
- User Interactions: Utilizes Inquirer and Chalk for a user-friendly interface 🤔
- Banking Services: Allows users to view their balance, withdraw cash, deposit cash, and exit the application 💸
Project Structure
Customer Class
Defines customer details such as:
First Name Last Name Age Gender Mobile Number Account Number
BankAccount Interface
Defines the structure for bank accounts, including:
Account Number Balance
Bank Class
Manages customers and their bank accounts, including:
Adding new customers Adding bank accounts Updating transactions
Example
Here's a brief example of how the program works:
When you run the program, you will be greeted with a welcome message. You will be prompted to select a service: View Balance, Cash Withdraw, Cash Deposit, or Exit. Based on your selection, you will be asked to enter your account number and proceed with the chosen operation. The program handles the operations and updates your account balance accordingly.
Installation
You can install the Object Oriented Programming Project via npm:
npm i a216_oop_mybank
Usage
To start the program, run the following command in your terminal:
npx a216_oop_mybank
License
This project is licensed under the MIT License.
Author
Aisha