A simple command-line application to manage bank accounts, allowing users to create accounts, check balances, deposit, and withdraw funds.
- Create a new bank account.
- Check account balance.
- Deposit funds into an account.
- Withdraw funds (feature to be implemented).
- User-friendly CLI interface using
inquirer
. - Data persistence through JSON files.
Ensure you have the following installed on your system:
- Node.js (version 14 or higher)
- npm (comes with Node.js)
-
Clone the repository:
git clone https://github.com/your-username/banking-cli.git
-
Install dependencies:
npm install
Run the application with the following command: npm run dev
- Create Account: Create a new account with a unique name.
- Check Balance: View the current balance of an existing account.
- Deposit: Add funds to an existing account.
- Withdraw: (Feature in progress) Withdraw funds from an existing account.
- Exit: Exit the application.
accounts/
: Directory where account data is stored as JSON files.app.mjs
: Main application script.
- inquirer: For creating interactive CLI prompts.
- chalk: For styling console output.
- fs: For file system operations (built-in Node.js module).
npm install
: Installs all necessary dependencies.npm run dev
: Starts the application.
- Implement the withdrawal functionality.
- Add validation for inputs (e.g., positive numbers for deposits).
- Enhance error handling.
- Add unit tests for core functionality.
- Provide a summary of all accounts.
This project is licensed under the ISC License.
Happy coding! 🚀