How allwinnavise/ledger works
This is a React personal-finance ledger interface: users can record spending and savings, review current spending, and browse dated transaction history. The browser entry mounts the routed application; the application loads ledger data and shares state with the feature views. Spending entry is delegated to a form component, while the spending and savings views send changes to an HTTP API at localhost:3500. The README only documents Create React App setup, and no backend source is present in the tree, so API internals and the role of data/db.json cannot be verified.
Main entry points: App.js Routed app and shared state · spendings.js Today's spending · index.js Browser entry · addSpending.js Spending form
Components 9
Application shell
- Browser entry
src/index.js - Routed app and shared state
src/App.js
Ledger actions
- Today's spending
src/spendings.js - Spending form
src/addSpending.js - Savings entry and history
src/savings.js
Ledger views
- Home view
src/homepage.js - Dated transaction history
src/expensesHistory.js
Other components
- User
- Ledger HTTP API
Connections 11
- User → Browser entry: opens
- Browser entry → Routed app and shared state: mounts
src/index.js - Routed app and shared state → Home view: routes to
src/App.js - Routed app and shared state → Today's spending: routes to
src/App.js - Routed app and shared state → Savings entry and history: routes to
src/App.js - Routed app and shared state → Dated transaction history: routes to
src/App.js - Routed app and shared state → Ledger HTTP API: loads ledger data
src/App.js - Today's spending → Spending form: renders
src/spendings.js - Spending form → Today's spending: submits callback
src/addSpending.js - Today's spending → Ledger HTTP API: writes spending
src/spendings.js - Savings entry and history → Ledger HTTP API: reads and writes savings
src/savings.js