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.
To get started with this project, follow the instructions below:
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.
-
Clone this repository to your local machine:
git clone https://github.com/your-username/expense-tracker.git
-
Change to the project directory:
cd expense-tracker -
Install project dependencies using npm:
npm install
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 devThe application will be available at http://localhost:3000. Open this URL in your web browser to access the Expense Tracker.
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.
Contributions are welcome! If you would like to contribute to this project, please follow these guidelines:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them.
- Push your changes to your fork.
- Submit a pull request to the
mainbranch of this repository.
Please make sure to follow the Code of Conduct and the Contributing Guidelines when contributing.
This project is licensed under the MIT License - see the LICENSE file for details.