How jcv2021/finance-app works
This is a scaffold for a local-first personal finance application. The clearest implemented user-facing domain behavior is a set of standalone financial calculations: account, available-money, financial, period, and daily balances, plus transfer construction. The API currently only logs a startup message, and the web app has no source files in the tree. No calls or wiring between these pieces are shown, so the graph keeps them separate; the database migration is also unsampled.
Components 7
API runtime
- API server
apps/api/src/server.ts
Financial core
- Account balance
packages/financial-core/src/calculations/calculateAccountBalance.ts - Available money
packages/financial-core/src/calculations/calculateAvailableMoney.ts - Financial balance
packages/financial-core/src/calculations/calculateFinancialBalance.ts - Period balance
packages/financial-core/src/calculations/calculatePeriodBalance.ts - Daily balance
packages/financial-core/src/calculations/calculateDailyBalance.ts - Transfer creation
packages/financial-core/src/calculations/createTransfer.ts