8000 GitHub - code-douglas/accounts: bank account create on javascript whit chalk, inquirer and fs
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

code-douglas/accounts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Banking CLI Application

A simple command-line application to manage bank accounts, allowing users to create accounts, check balances, deposit, and withdraw funds.

Features

  • 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.

Prerequisites

Ensure you have the following installed on your system:

  • Node.js (version 14 or higher)
  • npm (comes with Node.js)

Installation

  1. Clone the repository: git clone https://github.com/your-username/banking-cli.git

  2. Install dependencies: npm install

Usage

Run the application with the following command: npm run dev

Available Actions

  1. Create Account: Create a new account with a unique name.
  2. Check Balance: View the current balance of an existing account.
  3. Deposit: Add funds to an existing account.
  4. Withdraw: (Feature in progress) Withdraw funds from an existing account.
  5. Exit: Exit the application.

File Structure

  • accounts/: Directory where account data is stored as JSON files.
  • app.mjs: Main application script.

Dependencies

  • inquirer: For creating interactive CLI prompts.
  • chalk: For styling console output.
  • fs: For file system operations (built-in Node.js module).

Scripts

  • npm install: Installs all necessary dependencies.
  • npm run dev: Starts the application.

Future Improvements

  • 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.

License

This project is licensed under the ISC License.


Happy coding! 🚀

About

bank account create on javascript whit chalk, inquirer and fs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0