How codearora/expenditure-tracking-system works
This is a React and Express expense-tracking application. Users register or log in, then view, filter, add, edit, and delete income or expense transactions and switch between a table and analytics view. The backend exposes user and transaction routes backed by MongoDB models. The README also describes budget-crossing notifications and avoidable-expense predictions, but the supplied tree and excerpts do not show their implementation; those capabilities are marked as documented only. Some client-to-server wiring is inferred from endpoint paths and is shown as unverified.
Main entry points: HomePage.js Transaction dashboard · App.js App routes · server.js Express server · Layout.js Page layout
Components 20
Client application
- App routes
client/src/App.js - Login
client/src/pages/Login.js - Register
client/src/pages/Register.js - Transaction dashboard
client/src/pages/HomePage.js - Page layout
client/src/components/Layout/Layout.js - Header
client/src/components/Layout/Header.js - Footer
client/src/components/Layout/Footer.js - Loading indicator
client/src/components/Spinner.js - Transaction analytics
client/src/components/Analytics.js
API and routing
- Express server
server.js - User routes
routes/userRoute.js - Transaction routes
routes/transectionRoutes.js
Users and transactions
- User controller
controllers/userController.js - Transaction controller
controllers/transectionCtrl.js - User model
models/userModel.js - Transaction model
models/transectionModel.js - MongoDB connection
config/connectDb.js
Documented capabilities
- Budget notifications
controllers - Avoidable-expense prediction
controllers
Other components
- User
Connections 19
- User → App routes: opens
README.md - App routes → Transaction dashboard: routes to
client/src/App.js - App routes → Login: routes to
client/src/App.js - App routes → Register: routes to
client/src/App.js - Transaction dashboard → Page layout: renders
client/src/pages/HomePage.js - Transaction dashboard → Loading indicator: renders
client/src/pages/HomePage.js - Transaction dashboard → Transaction analytics: renders
client/src/pages/HomePage.js - Page layout → Header: renders
client/src/components/Layout/Layout.js - Page layout → Footer: renders
client/src/components/Layout/Layout.js - Transaction dashboard → Express server: requests transactions
- Express server → User routes: mounts
server.js - Express server → Transaction routes: mounts
server.js - User routes → User controller: dispatches
routes/userRoute.js - Transaction routes → Transaction controller: dispatches
routes/transectionRoutes.js - User controller → User model: queries
controllers/userController.js - Transaction controller → Transaction model: queries
controllers/transectionCtrl.js - Express server → MongoDB connection: connects
server.js - User → Budget notifications: receives
README.md - User → Avoidable-expense prediction: receives
README.md