Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Expense Tracker with React.js, Context API, and Vite

Live Demo

This is a simple Expense Tracker application built with React.js using the Context API for state management and Vite as the build tool. With this application, you can manage your expenses and income. Features include:

  • Creating a user interface for the project.
  • Displaying transaction items in the Document Object Model (DOM).
  • Showing the balance, total expenses, and total income.
  • Adding new transactions and reflecting them in the total.
  • Deleting items from the DOM.

Table of Contents

Getting Started

To get started with this project, follow the instructions below:

Prerequisites

You need to have Node.js and npm (Node Package Manager) installed on your system. If you haven't already installed them, you can download and install Node.js from the official website.

Installation

  1. Clone this repository to your local machine:

    git clone https://github.com/your-username/expense-tracker.git
  2. Change to the project directory:

    cd expense-tracker
  3. Install project dependencies using npm:

    npm install

Usage

Once you have completed the installation, you can run the Expense Tracker locally on your development server. Use the following command to start the development server:

npm run dev

The application will be available at http://localhost:3000. Open this URL in your web browser to access the Expense Tracker.

Project Structure

The project's source code is organized as follows:

  • src/ - This directory contains the source code for the React application.
    • components/ - React components used in the application.
    • context/ - Context API setup for managing global state.
    • App.js - The main React component.
  • public/ - Static assets such as HTML and CSS.
  • index.html - The main HTML file for the application.
  • package.json - Project metadata and dependencies.
  • vite.config.js - Configuration file for Vite.

Contributing

Contributions are welcome! If you would like to contribute to this project, please follow these guidelines:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes and commit them.
  4. Push your changes to your fork.
  5. Submit a pull request to the main branch of this repository.

Please make sure to follow the Code of Conduct and the Contributing Guidelines when contributing.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Expense Tracker with React.js, Context API, and Vite

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages