Skip to content

Latest commit

Β 

History

History
127 lines (90 loc) Β· 3.15 KB

File metadata and controls

127 lines (90 loc) Β· 3.15 KB

πŸ’Έ Expense Tracker

A clean and intuitive expense tracking web application built with React and Vite, deployed on GitHub Pages.

πŸ”— Live Demo: kanan010506.github.io/expense-tracker


πŸ“‹ Table of Contents


About

Expense Tracker is a lightweight single-page application that helps you keep track of your income and expenses. It provides a simple and fast interface to add, view, and manage transactions so you always know where your money is going.


✨ Features

  • Add income and expense transactions
  • View current balance at a glance
  • Track transaction history
  • Delete individual transactions
  • Responsive design that works on desktop and mobile
  • Fast, client-side only β€” no backend required

πŸ› οΈ Tech Stack

Technology Purpose
React 19 UI library
Vite 7 Build tool & dev server
gh-pages Deployment to GitHub Pages
JavaScript (ES Modules) Application logic
CSS Styling

πŸš€ Getting Started

Prerequisites

Make sure you have the following installed:

  • Node.js (v18 or higher recommended)
  • npm (comes with Node.js)

Installation

  1. Clone the repository
   git clone https://github.com/kanan010506/expense-tracker.git
   cd expense-tracker
  1. Install dependencies
   npm install
  1. Start the development server
   npm run dev
  1. Open your browser and navigate to http://localhost:5173

πŸ“œ Available Scripts

Script Description
npm run dev Start the local development server
npm run build Build the app for production into the dist/ folder
npm run preview Preview the production build locally
npm run lint Run ESLint to check for code issues
npm run deploy Build and deploy the app to GitHub Pages

πŸ“ Project Structure

expense-tracker/
β”œβ”€β”€ public/             # Static assets
β”œβ”€β”€ src/                # Application source code
β”‚   β”œβ”€β”€ components/     # React components
β”‚   β”œβ”€β”€ App.jsx         # Root application component
β”‚   └── main.jsx        # Application entry point
β”œβ”€β”€ index.html          # HTML entry point
β”œβ”€β”€ vite.config.js      # Vite configuration
β”œβ”€β”€ eslint.config.js    # ESLint configuration
└── package.json        # Project metadata and dependencies

🌐 Deployment

This project is configured for deployment to GitHub Pages using the gh-pages package.

To deploy:

npm run deploy

This will automatically build the project and push the dist/ folder to the gh-pages branch of the repository.

The homepage field in package.json is already set to:

https://kanan010506.github.io/expense-tracker/

Made with ❀️ by kanan010506