How raviraj785/fintrack works
FinTrack is a full-stack personal-finance application. A user enters through the React app, moves between its home, signup, login, and dashboard views, and uses the dashboard to review financial activity; the README describes transaction search, filtering, sorting, analytics, and budget management. On the backend, Express mounts authentication, transaction, and budget routes; route handlers enforce protection where configured and controllers operate on user-scoped MongoDB models. The excerpts show dashboard data fetching but omit its endpoint details and frontend auth requests, so those client-to-API links are left unverified. Budget storage and some UI behavior are represented from the tree and README, not sampled source.
Main entry points: Dashboard.jsx Finance dashboard · App.jsx Page state · server.js Express server · transactionRoutes.js Transaction routes
Components 21
React app
- Page state
frontend/src/App.jsx - Home view
frontend/src/pages/Home.jsx
Identity
- Login view
frontend/src/pages/Login.jsx - Signup view
frontend/src/pages/Signup.jsx - Auth routes
backend/routes/authRoutes.js - Account authentication
backend/controllers/authController.js - JWT protection
backend/middleware/authMiddleware.js
Finance operations
- Finance dashboard
frontend/src/pages/Dashboard.jsx - Search navigation
frontend/src/components/Navbar.jsx - Dashboard navigation
frontend/src/components/Sidebar.jsx - Summary cards
frontend/src/components/Statcard.jsx - Transaction routes
backend/routes/transactionRoutes.js - Transaction management
backend/controllers/transactionController.js - Budget routes
backend/routes/budgetRoutes.js - Budget management
backend/controllers/budgetController.js
Persistence
- Express server
backend/server.js - User records
backend/models/User.js - Transaction records
backend/models/Transaction.js - Budget records
backend/models/Budget.js
Other components
- User
- MongoDB
Connections 24
- User → Page state: uses
README.md - Page state → Home view: renders
frontend/src/App.jsx - Page state → Login view: renders
frontend/src/App.jsx - Page state → Signup view: renders
frontend/src/App.jsx - Page state → Finance dashboard: renders
frontend/src/App.jsx - Finance dashboard → Search navigation: renders
frontend/src/pages/Dashboard.jsx - Finance dashboard → Dashboard navigation: renders
frontend/src/pages/Dashboard.jsx - Finance dashboard → Summary cards: renders
frontend/src/pages/Dashboard.jsx - Login view → Auth routes: authenticates
- Signup view → Auth routes: registers
- Finance dashboard → Transaction routes: loads and manages
- Finance dashboard → Budget routes: manages budgets
- Express server → Auth routes: mounts
backend/server.js - Express server → Transaction routes: mounts
backend/server.js - Express server → Budget routes: mounts
backend/server.js - Auth routes → Account authentication: dispatches
backend/routes/authRoutes.js - Transaction routes → JWT protection: protects
backend/routes/transactionRoutes.js - Transaction routes → Transaction management: dispatches
backend/routes/transactionRoutes.js - Budget routes → JWT protection: protects
backend/routes/budgetRoutes.js - Budget routes → Budget management: dispatches
backend/routes/budgetRoutes.js - Account authentication → User records: reads and creates
backend/controllers/authController.js - Transaction management → Transaction records: reads and writes
backend/controllers/transactionController.js - Budget management → Budget records: reads and writes
backend/controllers/budgetController.js - Express server → MongoDB: connects
backend/server.js