๐ŸŽ™ Free live masterclass ยท Sun, 29 Nov, 7:00 pm IST ยท Java Full Stack roadmap Register free โ†’
Skills101

Budget tracker web app

Track income and expenses in the browser with categories, monthly filters and a chart; data stays on your device.

Beginnerโฑ 5โ€“8 hours๐Ÿชœ 7 stepsHTMLCSSJavaScriptChart.js

What you'll learn

  • โ—†Forms and validation
  • โ—†Array methods (filter, map, reduce)
  • โ—†Charts with Chart.js

What you'll build

  • โœ“Add income/expense with category and date
  • โœ“Balance, income and expense totals
  • โœ“Filter by month and category
  • โœ“Doughnut chart by category

Step-by-step guide

  1. 1

    Form

    Inputs for description, amount, type (income/expense), category, date; validate amount > 0.

  2. 2

    Store transactions

    An array of objects saved to localStorage as JSON after every change.

  3. 3

    Totals

    Use reduce to sum income and expense; balance = income โˆ’ expense; format with Intl.NumberFormat("en-IN", {style: "currency", currency: "INR"}).

  4. 4

    List and delete

    Render the list newest first with a delete button using the item's id.

  5. 5

    Filters

    A month input and category select; derive the visible list with filter.

  6. 6

    Chart

    Add Chart.js from a CDN and draw a doughnut chart of expenses by category; update it on every change.

  7. 7

    Export

    Download the data as CSV using a Blob and an <a download> link.

๐Ÿš€ Make it stand out

  • +Recurring transactions
  • +Import CSV
  • +Sync to a backend later