Skip to content

A simple CLI expense tracker application to manage your finances

License

Notifications You must be signed in to change notification settings

hayohtee/expense-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

expense-tracker

A simple CLI expense tracker application to manage your finances

Features

  • Adding an expense with a description and amount.
  • Updating an expense.
  • Deleting an expense.
  • Listing all expenses.
  • Summary of all expenses.
  • Summary of expenses for a specific month (of current year).

Installing

Ensure the GO SDK is installed

go install github.com/hayohtee/expense-tracker@latest

Building from source

Ensure the GO SDK is installed

  1. Clone the repository
    git clone [email protected]:hayohtee/expense-tracker.git
  2. Change into the project directory
    cd expense-tracker
  3. Compile
    go build -o expense-tracker main.go

Usage

$ expense-tracker add --description "Lunch" --amount 20
# Expense added successfully (ID: 1)

$ expense-tracker add --description "Dinner" --amount 10
# Expense added successfully (ID: 2)

$ expense-tracker list
# ID  Date        Description  Amount
# 1   2024-08-06  Lunch        $20
# 2   2024-08-06  Dinner       $10

$ expense-tracker summary
# Total expenses: $30

$ expense-tracker delete --id 2
# Expense deleted successfully

$ expense-tracker summary
# Total expenses: $20

$ expense-tracker summary --month 8
# Total expenses for August: $20

Challenge URL

Solution to the Task Tracker project on roadmap.sh

About

A simple CLI expense tracker application to manage your finances

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages