Xpense tracker is a command-line application for tacking and managing expenses.
It provides a straightforward way to interact with a expenses database using a simple cli interface.
- Add new expenses with date, description and amount.
- Update existing expenses.
- Delete expenses.
- View all expenses.
- View a summary of all expenses.
- View a summary of expenses for a specific month.
- Save and load expenses from a file.
-
Prerequisites
Ensure you have the following installed on your system:
Java Development Kit (JDK)
Apache Maven -
Navigate to the directory where you want to install the application and clone or download this repository:
git clone https://github.com/JoseLuisPelayo/Expense_Tracke
-
Navigate to the project
cd Expense_Tracker
-
Compile the project There are two ways to compile the project
-
In windows its possible execute the setup.bat file.
This script compile the project and add the /target folder to your system's PATH environment variable, allowing you to use the app globally. -
Compile manually the project
mvn clean install
Add the folder .../target to the path enviroment variable.
How to add a variable to the path enviroment variable in Windows
How to add a variable to the path enviroment variable in Mac
How to add a variable to the path enviroment variable in Linux
-
-
Reload Your Terminal Once the PATH is updated, for the changes to take effect.
-
Commands are:
update -> Update expense
add -> Add a expense
remove, rm, delete, del -> Remove a expense
find, f -> Find expense by ID
list, ls -> List expenses
summary, sum -> Summary expenses -
Add a expense
- Usage:
This command add a expense to our history
xpenseTracker add [-hV] [-d=<expense date>] <expense description><expense amount>
- Options are:
-d, --date=
-h, --help Show this help message and exit.
-V, --version Print version information and exit.
- Usage:
-
Update expense
- Usage:
This command update a expense
xpenseTracker update [-hV] [-a=<expense amount>] [-d=<expense description>] <expense ID>
- Options are:
-a, --amount=
-d, --description=
-h, --help Show this help message and exit.
-V, --version Print version information and exit.
- Usage:
-
Remove a expense
- Usage:
This command delete a expense of our history
xpenseTracker remove[-hV] <expense ID>
- Options are:
-h, --help Show this help message and exit.
-V, --version Print version information and exit.
- Usage:
-
Find expense by ID
- Usage:
This command find a expense by ID
xpenseTracker find [-hV] <expense ID>
- Options are:
-h, --help Show this help message and exit.
-V, --version Print version information and exit.
- Usage:
-
List expenses
- Usage:
This command list all expenses
xpenseTracker list [-hV]
- Options are:
-h, --help Show this help message and exit.
-V, --version Print version information and exit.
- Usage:
-
Summary expenses
- Usage:
This command provide the summary of expenses
xpenseTracker summary [-hV] [-m=<month number 1 to 12>]
- Options are:
-h, --help Show this help message and exit.
-m, --month=<month number 1 to 12> List the summary of the month expenses in the current year
-V, --version Print version information and exit.
- Usage:
- To uninstall the app remove the alias from the enviroment path.
- Reload the file path or restart CMD.
- Remove the directory where you installed the application.
If you would like to contribute to XpenseTracker, please fork the repository, create a branch for your feature or bug fix, and then submit a pull request.