This Expense Tracker is a command-line application that allows users to manage their expenses. It is built using Python and SQLAlchemy for database interactions. Users can create accounts, add categories, record expenses and view/delete their expense history.
- Clone the repository
git clone [email protected]:Samstar10/Expense-tracker-CLI.git
- Install the required dependencies
pipenv install
To create a user, run the following command:
python3 app.py create-user <username> <password>
Replace <username>
and <password>
with the desired values.
To add a category, use the following command:
python3 app.py add-category <category_name>
To delete a category, run the command:
python3 app.py delete-category <category_name>
To log in, use the following command:
python3 app.py login <username> <password>
To add an expense, run the command:
python3 app.py add-expense --user=<username> <amount> <description> --category=<category>
To view expenses, run:
python3 app.py view-expenses --user=<username>
To delete an expense, use the command:
python3 app.py delete-expense --user=<username> <expense_id>
- Fork the repository.
- Clone the repository.
- Install dependencies by running
pipenv install
. - Create branch using
git checkout -b new-feature
. - Make a pull request.
User passwords are securely stored using the bcrypt hashing algorithm.