This is a web-based Income Expense Calculator that allows users to track their income and expenses, providing a clear overview of their financial status. The application is built using HTML, CSS, and JavaScript, and is hosted on Netlify.
- Add Income and Expense: Easily add income and expense entries with details like type, name, and amount.
- Edit & Delete Entries: Edit or delete entries as needed, with a dynamic interface that updates totals in real time.
- Filter Options: Filter entries by income, expenses, or view all.
- Persistent Data: Data is stored in
localStorage
to retain entries and totals even after refreshing the page. - Dynamic Balance: Shows updated total income, total expenses, and net balance at the top.
- Responsive Design: The layout is optimized for both desktop and mobile views.
- HTML
- CSS
- JavaScript
-
Clone the repository:
git clone https://github.com/vaibhavapriya/Income-Expense-Calculator-Task.git cd Income-Expense-Calculator-Task
-
Open the
index.html
file in your browser to view the app locally. -
Deploy to Netlify:
- Sign up for a Netlify account if you don’t have one.
- Netlify will provide a unique URL to access your hosted site.
-
Adding Entries:
- Click the Income or Expense button to open the popup form.
- Enter the type, name, and amount of the entry.
- Click Submit to add the entry, updating the totals at the top.
-
Editing and Deleting Entries:
- Each entry has Edit and Delete buttons.
- Edit the entry to change details and update the balance accordingly.
- Delete an entry to remove it, and the balance and totals will update automatically.
-
Filtering Entries:
- Use the radio buttons at the top to filter entries:
- All: View both income and expense entries.
- Income: View only income entries.
- Expense: View only expense entries.
- Use the radio buttons at the top to filter entries:
-
Data Persistence:
- All entries are stored in
localStorage
. This includes individual income and expense entries, as well as the balance, total income, and total expense. - Refreshing the page or closing the browser will not erase the data.
- All entries are stored in
-
Reset Button:
- A reset button clears all data and entries, resetting the balance to zero.
This project is open source and available under the MIT License.