How stepanchikk/money_tracking works
This is a personal-finance web application backed by a JWT-protected REST API. Users authenticate, then manage accounts and record income, expenses, or transfers; the API updates account balances and stores transactions. The UI dashboard exposes transaction, account, category, budget, goal, report, and overview views. Planning includes category spend-limit checks and savings goals, while reports provide an additional analysis branch. The main transaction, budget, account, and goal relationships are visible in excerpts; other API links rely on the SOURCE INDEX. Frontend-to-API requests are not shown, so that boundary is marked unverified.
Main entry points: server.js Express API · Dashboard.jsx Dashboard shell · authMiddleware.js JWT protection · transaction.js Transaction records
Components 34
Web client
- App
client/src/App.jsx - Authentication view
client/src/components/Auth.jsx - Dashboard shell
client/src/components/Dashboard.jsx - Accounts view
client/src/components/Accounts.jsx - Transactions view
client/src/components/Transactions.jsx - Categories view
client/src/components/Categories.jsx - Budgets view
client/src/components/Budgets.jsx - Goals view
client/src/components/Goals.jsx - Reports view
client/src/components/Reports.jsx - Overview view
client/src/components/Overview.jsx
API and access
- Express API
finance_api/server.js - Authentication routes
finance_api/routes/authRoutes.js - Authentication logic
finance_api/controllers/authController.js - JWT protection
finance_api/middlewares/authMiddleware.js - Account routes
finance_api/routes/accountRoutes.js - Transaction routes
finance_api/routes/transactionRoutes.js - Budget routes
finance_api/routes/budgetRoutes.js - Goal routes
finance_api/routes/goalRoutes.js - Report routes
finance_api/routes/reportRoutes.js - Category routes
finance_api/routes/categoryRoutes.js
Finance operations
- Account operations
finance_api/controllers/accountController.js - Transaction operations
finance_api/controllers/transactionController.js - Category operations
finance_api/controllers/categoryController.js
Planning and analysis
- Budget status
finance_api/controllers/budgetController.js - Goal operations
finance_api/controllers/goalController.js - Report generation
finance_api/controllers/reportController.js
Persistence
- User records
finance_api/models/user.js - Account records
finance_api/models/account.js - Transaction records
finance_api/models/transaction.js - Budget records
finance_api/models/budget.js - Goal records
finance_api/models/goal.js - Category records
finance_api/models/category.js - Transaction tags
finance_api/models/tag.js
Other components
- Finance user
Connections 46
- Finance user → App: uses
README.md - App → Authentication view: shows unauthenticated
client/src/App.jsx - App → Dashboard shell: shows authenticated
client/src/App.jsx - Dashboard shell → Accounts view: renders
client/src/components/Dashboard.jsx - Dashboard shell → Transactions view: renders
client/src/components/Dashboard.jsx - Dashboard shell → Categories view: renders
client/src/components/Dashboard.jsx - Dashboard shell → Budgets view: renders
client/src/components/Dashboard.jsx - Dashboard shell → Goals view: renders
client/src/components/Dashboard.jsx - Dashboard shell → Reports view: renders
client/src/components/Dashboard.jsx - Dashboard shell → Overview view: renders
client/src/components/Dashboard.jsx - Authentication view → Express API: requests auth
- Accounts view → Express API: requests accounts
- Transactions view → Express API: requests transactions
- Categories view → Express API: requests categories
- Budgets view → Express API: requests budgets
- Goals view → Express API: requests goals
- Reports view → Express API: requests reports
- Express API → Authentication routes: mounts
finance_api/server.js - Express API → Category routes: mounts
finance_api/server.js - Express API → Account routes: mounts
finance_api/server.js - Express API → Transaction routes: mounts
finance_api/server.js - Express API → Report routes: mounts
finance_api/server.js - Express API → Budget routes: mounts
finance_api/server.js - Express API → Goal routes: mounts
finance_api/server.js - Authentication routes → Authentication logic: dispatches
finance_api/routes/authRoutes.js - Account routes → Account operations: dispatches
finance_api/routes/accountRoutes.js - Transaction routes → Transaction operations: dispatches
finance_api/routes/transactionRoutes.js - Budget routes → Budget status: dispatches
finance_api/routes/budgetRoutes.js - Goal routes → Goal operations: dispatches
finance_api/routes/goalRoutes.js - Report routes → Report generation: dispatches
finance_api/routes/reportRoutes.js - Category routes → Category operations: dispatches
finance_api/routes/categoryRoutes.js - Account routes → JWT protection: protects
finance_api/routes/accountRoutes.js - Transaction routes → JWT protection: protects
finance_api/routes/transactionRoutes.js - Budget routes → JWT protection: protects
finance_api/routes/budgetRoutes.js - Goal routes → JWT protection: protects
finance_api/routes/goalRoutes.js - JWT protection → User records: loads user
finance_api/middlewares/authMiddleware.js - Authentication logic → User records: reads and writes
finance_api/controllers/authController.js - Account operations → Account records: reads and writes
finance_api/controllers/accountController.js - Transaction operations → Transaction records: reads and writes
finance_api/controllers/transactionController.js - Transaction operations → Account records: updates balances
finance_api/controllers/transactionController.js - Budget status → Budget records: reads and writes
finance_api/controllers/budgetController.js - Budget status → Transaction records: aggregates spending
finance_api/controllers/budgetController.js - Goal operations → Goal records: reads and writes
finance_api/controllers/goalController.js - Report generation → Transaction records: queries
finance_api/controllers/reportController.js - Category operations → Category records: reads and writes
finance_api/controllers/categoryController.js - Transaction records → Transaction tags: references tags
finance_api/models/transaction.js