π Welcome to the Expense Tracker project! π This web application π₯οΈ, built with React βοΈ, is designed π to help users π₯ keep track π§Ύ of their expenses π΅. With this app π οΈ, users π₯ can easily β¨ add β and delete β expenses πΈ, view π a summary π of their spending habits π°, and see π₯οΈ the available balance π΅ the user π€ has left π¦. Building an Expense Tracker π with React βοΈ helps users π₯ learn π and practice π οΈ creating web applications π.
The Expense Tracker π΅ is a simple yet powerful π οΈ web application π₯οΈ that provides real-time π tracking of expenses πΈ. With its user-friendly π§βπ» interface π₯οΈ, users π₯ can:
- Add β transactions πΈ
- Edit βοΈ transactions πΈ
- Delete β transactions πΈ
The application π₯οΈ maintains an updated π― list π of expenses πΈ and displays π₯οΈ the total expenses π΅ for visibility ποΈ. The use of React βοΈ components 𧩠ensures that the codebase π₯οΈ is structured ποΈ and modular π§©, making it easy π§ to maintain and scale π.
- Node.js π₯οΈ: JavaScript runtime π
- React βοΈ: JavaScript library π for building user interfaces π₯οΈ
- JavaScript π»: Programming language π₯οΈ
- HTML/CSS π: For structuring π and styling π¨ the application
To build π» the Expense Tracker π, the project involves:
-
Creating π οΈ a user interface π₯οΈ that allows users π₯ to:
- Add β transactions πΈ
- Edit βοΈ transactions πΈ
- Delete β transactions πΈ
-
Maintaining ποΈ an updated π― list π of expenses πΈ within the appβs state π.
-
Displaying π₯οΈ the total expenses π΅ for visibility ποΈ.
-
Utilizing π οΈ React βοΈ components 𧩠to keep the codebase π₯οΈ structured ποΈ and modular π§©, promoting maintenance π§ and scalability π.
-
Create π οΈ a new React JS project π₯οΈ using the following command π₯οΈ:
npx create-react-app <<Project_Name>> π
-
Change πΆββοΈ to the project directory π:
cd <<Project_Name>> π
-
Install π₯ the required modules π οΈ:
npm i styled-components π¨
-
Create π a folder called
components
π¦ in thesrc
directory π and create the following files π inside it:AddTransaction.js
βοΈOverviewComponent.js
π₯οΈTracker.js
π οΈTransactionItem.js
π³TransactionsContainer.js
ποΈ
Also, create a file π called
globalStyles.js
in thesrc
directory π.App.js
π₯οΈ: This component 𧩠is responsible π§ for rendering π₯οΈ the layout π of the application.AddTransaction.js
βοΈ: This component 𧩠allows users π₯ to add β transactions πΈ.OverviewComponent.js
π₯οΈ: This component 𧩠displays π₯οΈ the balance π° along with an βAddβ β button.Tracker.js
π οΈ: The component 𧩠that brings together π οΈ parts of the application π₯οΈ such as overview π₯οΈ, transaction list π, and addition β of transactions πΈ.TransactionItem.js
π³: This component 𧩠displays π₯οΈ transaction details π including description π, amount π΅, and a button π²οΈ to remove β it from the list π.TransactionsContainer.js
ποΈ: This component 𧩠filters π the list π of transactions πΈ, offers a search π input field π₯οΈ, and displays π₯οΈ only filtered transaction items π.
-
Start π the project by typing π₯οΈ the following command π₯οΈ in the terminal:
npm start π
-
Open π your web browser π and type π₯οΈ the following URL π:
http://localhost:3000/ π
To clone 𧩠the repository ποΈ, follow these steps:
-
Clone 𧩠the repository ποΈ using the following command π₯οΈ:
git clone https://github.com/nidhiupman568/ExpenseTracker-Using-React.JS.git π
-
Navigate πΆββοΈ into the project directory π:
cd your-repository π
-
Install π₯ the dependencies π οΈ:
npm install π₯
Hereβs a sneak peek πΌοΈ of the Expense Tracker π in action β³:
π Enjoy using the Expense Tracker! π Feel free to share π£οΈ your feedback π or contribute π€ to the project by making a pull request π. Happy tracking! π§Ύπ°
This project was bootstrapped with Create React App.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.
The page will reload when you make changes.
You may also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
Note: this is a one-way operation. Once you eject
, you can't go back!
If you aren't satisfied with the build tool and configuration choices, you can eject
at any time. This command will remove the single build dependency from your project.
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject
will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.
You don't have to ever use eject
. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify