Skip to content

KremelKeyz/Budget_Tracker

Repository files navigation

Budget Tracker (Laravel)

A simple personal budget tracker built with Laravel.

Features

  • Add, edit, and delete transactions
  • Mark each transaction as income or expense
  • Monthly filter (YYYY-MM)
  • Dashboard summary cards:
    • Total income
    • Total expense
    • Net balance
  • Input validation for amount, date, type, and category

Tech Stack

  • Laravel 12
  • Blade templates
  • MySQL (XAMPP)

Setup

  1. Install dependencies
composer install
npm install
  1. Configure environment
cp .env.example .env
php artisan key:generate
  1. Update DB connection in .env (already done in your case)

  2. Run migrations

php artisan migrate
  1. Start the server
php artisan serve

Then open:

Main Routes

  • GET / -> redirects to transactions dashboard
  • GET /transactions -> list transactions + summary
  • GET /transactions/create -> create form
  • POST /transactions -> save transaction
  • GET /transactions/{transaction}/edit -> edit form
  • PUT /transactions/{transaction} -> update transaction
  • DELETE /transactions/{transaction} -> delete transaction

Run Tests

php artisan test

Database Table

transactions table fields:

  • id
  • type (income or expense)
  • category (string)
  • amount (decimal)
  • description (nullable text)
  • transaction_date (date)
  • created_at, updated_at

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages