How dudamparthiv/income-expenses-tracker-app works
This is a personal-finance tracker with a React client and Express API. The main workflow is account and transaction management: users register or log in, create accounts, record income or expenses, and review account and transaction views. The backend separates HTTP routing, authentication middleware, domain controllers, and Mongoose models for users, accounts, and transactions. The graph includes the documented client routes and API calls; several dashboard and form implementations were not sampled, so their internal connections are not inferred. Database persistence is indicated only as an unverified relationship.
Main entry points: App.js Route application · server.js Express API · transactionsCtrl.js Transaction operations · User.js User records
Components 26
React client
- Route application
client/src/App.js - Home and header
client/src/components/HomePage/HomePage.js - Navigation
client/src/components/Navbar/Navbar.js - Login and register
client/src/components/Forms - Account form
client/src/components/Forms/AddAccount.js - Transaction form
client/src/components/Forms/AddTransaction.js - Account dashboard
client/src/components/Dashboard/AccountDashboard.js - Account details
client/src/components/Dashboard/AccountDetails.js - Income and expense views
client/src/components/Dashboard
Identity and access
- Auth context
client/src/components/context/AuthContext/AuthContext.js - Account context
client/src/components/context/AccountContext/AccountContext.js - Transaction context
client/src/components/context/TransactionContext/TransactionsContext.js - API URL config
client/src/utils/apiUrl.js - Token authentication
BACKEND/middlewares/isLogin.js
Finance operations
- Express API
BACKEND/server.js - User routes
BACKEND/routes/users/usersRoute.js - Account routes
BACKEND/routes/accounts/accountsRoute.js - Transaction routes
BACKEND/routes/transactions/transactionsRoute.js - User operations
BACKEND/controllers/users/usersCtrl.js - Account operations
BACKEND/controllers/accounts/accountsCtrl.js - Transaction operations
BACKEND/controllers/transactions/transactionsCtrl.js
Domain data
- User records
BACKEND/model/User.js - Account records
BACKEND/model/Account.js - Transaction records
BACKEND/model/Transaction.js
Other components
- User
- MongoDB
Connections 34
- User → Route application: uses
client/src/App.js - Route application → Home and header: routes to
client/src/App.js - Route application → Navigation: renders
client/src/App.js - Route application → Login and register: routes to
client/src/App.js - Route application → Account form: routes to
client/src/App.js - Route application → Transaction form: routes to
client/src/App.js - Route application → Account dashboard: routes to
client/src/App.js - Route application → Account details: routes to
client/src/App.js - Route application → Income and expense views: routes to
client/src/App.js - Home and header → Navigation: renders
client/src/components/HomePage/HomePage.js - Auth context → API URL config: uses endpoint config
client/src/components/context/AuthContext/AuthContext.js - Account context → API URL config: uses endpoint config
client/src/components/context/AccountContext/AccountContext.js - Transaction context → API URL config: uses endpoint config
client/src/components/context/TransactionContext/TransactionsContext.js - Auth context → Express API: HTTP requests
client/src/components/context/AuthContext/AuthContext.js - Account context → Express API: HTTP requests
client/src/components/context/AccountContext/AccountContext.js - Transaction context → Express API: HTTP requests
client/src/components/context/TransactionContext/TransactionsContext.js - Express API → User routes: mounts routes
BACKEND/server.js - Express API → Account routes: mounts routes
BACKEND/server.js - Express API → Transaction routes: mounts routes
BACKEND/server.js - User routes → User operations: dispatches to
BACKEND/routes/users/usersRoute.js - User routes → Token authentication: applies auth
BACKEND/routes/users/usersRoute.js - Account routes → Account operations: dispatches to
BACKEND/routes/accounts/accountsRoute.js - Account routes → Token authentication: applies auth
BACKEND/routes/accounts/accountsRoute.js - Transaction routes → Transaction operations: dispatches to
BACKEND/routes/transactions/transactionsRoute.js - Transaction routes → Token authentication: applies auth
BACKEND/routes/transactions/transactionsRoute.js - User operations → User records: reads and writes
BACKEND/controllers/users/usersCtrl.js - Account operations → User records: reads and updates
BACKEND/controllers/accounts/accountsCtrl.js - Account operations → Account records: reads and writes
BACKEND/controllers/accounts/accountsCtrl.js - Transaction operations → User records: reads
BACKEND/controllers/transactions/transactionsCtrl.js - Transaction operations → Account records: reads and updates
BACKEND/controllers/transactions/transactionsCtrl.js - Transaction operations → Transaction records: reads and writes
BACKEND/controllers/transactions/transactionsCtrl.js - User records → MongoDB: persists in
- Account records → MongoDB: persists in
- Transaction records → MongoDB: persists in