How mfurqanasif/expense-tracker works
Project type and purpose
• This is a front-end single-page application (SPA) built with React (bootstrapped via Create React App).
• It manages a simple transaction history and account information entirely in the browser (no backend API).
File structure
• public/: static assets (index.html, manifest.json, robots.txt).
• src/: application source code
• components/: presentational and container React components (Header, History, Transaction, TransactionItem, AccountInfo)
• context/: Context API definitions (contextTrans.js)
• reducer/: state-update logic (reduceTrans.js)
• App.js / index.js: root component and entry point
• serviceWorker.js: PWA caching layer
• setupTests.js & App.test.js: testing setup
• package.json + yarn scripts: build, start, test, eject
• .github/workflows/main.yml: CI pipeline (runs builds/tests on push)
README for additional insights
• Standard CRA build/test/deploy workflow.
• HTTP requests for assets
• User events → component props → dispatch actions → state changes → re-render
• Orange: Service Worker (caching layer)
• Gray: Static server