How akshaykamath45/personal-finance-managment-system-hackathon works
Project Type & Purpose
• This project is a front-end financial management application called “Dyme – Manage all your Finance at One Place.” It focuses on budgeting, expense tracking, and some additional financial planning features (like savings and PPF calculations). There is no backend/service layer in this repository; it’s purely the client side built using React.
• The README highlights that this was developed during a hackathon with a goal to provide a comprehensive financial planning experience.
Analyzing the File Structure
• Top-level directories include:
• “public”: Contains static files like index.html, manifest, etc.
• “src”: The main source code for the React application.
• “components”: Houses reusable UI elements like Navbar, BudgetCard, various Modal dialogs (AddBudgetModal, AddExpenseModal, ViewExpensesModal, etc.), and presentation components (Hero, Slider).
• “contexts”: Contains BudgetsContext.js, meaning the app uses React’s Context API for managing state related to budgeting and expenses.
• “hooks”: Includes a hook for localStorage (useLocalStorage.js) indicating that there’s persistence of data in the browser.
• “pages”: Contains various application pages (Login, Signup, Dashboard, Budget, Savings, Sliders, and a page for PPF calculations).
• Other files (App.js, index.js, utils.js) tie these components together.
• Additional files like tailwind.config.js and various CSS files suggest use of Tailwind CSS and custom styling.
Key Components & Their Relationships
• Main entry point and bootstrapping:
• index.html (in public) loads the React application.
• src/index.js renders the main App component.
• App Component (src/App.js):
• Acts as a container that manages the routing between pages (like Login, Signup, Dashboard, Budget, etc.) and integrates global state management through BudgetsContext.
• UI Components:
• Navigation (Navbar), Hero section, and Slider display landing page contents.
• Modal components for adding budgets/expenses and viewing details provide overlays and interact with the state.
• State Management:
• BudgetsContext and the localStorage hook are central to managing and persisting financial data.
• Page Components:
• Each route (Budget, Login, Signup, Savings, Insurance, etc.) is encapsulated in distinct pages. They make use of the components and context to render interactive and dynamic interfaces.
• Utility & Styling:
• Tailwind and custom CSS files (like App.css, index.css, and component-specific css files) are used for styling.
• utils.js likely contains helper functions for business logic.