How vedikakute06/wealthlens works
WealthLens is a personal-finance web application: users sign in, record or upload transactions, then review budgeting, financial-health, goals, and planning insights. The React application routes authenticated users to feature pages, which use a shared API client to call a FastAPI backend; the backend registers feature routers and uses MongoDB-backed services. The README confirms the React, FastAPI, and MongoDB stack. Several domain modules are listed but not excerpted, so their internal call paths are not asserted here.
Main entry points: main.py FastAPI application · api.js HTTP API client · App.jsx Route application · upload_service.py Transaction import
Components 23
Web application
- Route application
frontend/src/App.jsx - Auth state
frontend/src/context/AuthContext.jsx - Dashboard
frontend/src/pages/Dashboard.jsx - Budget insights
frontend/src/pages/BudgetInsights.jsx - Finance planning pages
frontend/src/pages - HTTP API client
frontend/src/services/api.js
Backend API
- FastAPI application
backend/app/main.py - Transaction routes
backend/app/routes/transactions.py - CSV upload route
backend/app/routes/upload_routes.py - Budget routes
backend/app/routes/budget.py - Finance routes
backend/app/routes/finance.py - Planning and insight routes
backend/app/routes - User routes
backend/app/routes/user.py
Finance services
- Transaction import
backend/app/services/upload_service.py - Finance summary
backend/app/services/finance_service.py - Planning services
backend/app/services - Insights and risk
backend/app/services - ML prediction
backend/app/ml/prediction.py - Behavior prediction
backend/app/ml/behavior_prediction.py
Data and prediction
- MongoDB access
backend/app/database.py - Request and response schemas
backend/app/schemas
Other components
- User
- MongoDB
Connections 23
- User → Route application: uses
frontend/src/App.jsx - Route application → Auth state: checks access
frontend/src/App.jsx - Route application → Dashboard: routes to
frontend/src/App.jsx - Route application → Budget insights: routes to
frontend/src/App.jsx - Route application → Finance planning pages: routes to
frontend/src/App.jsx - Dashboard → HTTP API client: requests data
frontend/src/pages/Dashboard.jsx - Budget insights → HTTP API client: loads and saves
frontend/src/pages/BudgetInsights.jsx - HTTP API client → Transaction routes: HTTP requests
frontend/src/services/api.js - HTTP API client → CSV upload route: HTTP upload
frontend/src/services/api.js - HTTP API client → Budget routes: HTTP requests
frontend/src/services/api.js - HTTP API client → User routes: HTTP requests
frontend/src/services/api.js - FastAPI application → Transaction routes: registers
backend/app/main.py - FastAPI application → CSV upload route: registers
backend/app/main.py - FastAPI application → Budget routes: registers
backend/app/main.py - FastAPI application → Finance routes: registers
backend/app/main.py - FastAPI application → Planning and insight routes: registers
backend/app/main.py - FastAPI application → User routes: registers
backend/app/main.py - CSV upload route → Transaction import: invokes
backend/app/routes/upload_routes.py - Finance summary → MongoDB access: reads and writes
backend/app/services/finance_service.py - Transaction import → MongoDB access: uses
backend/app/services/upload_service.py - MongoDB access → MongoDB: connects to
backend/app/database.py - Finance summary → Request and response schemas: uses response schema
backend/app/services/finance_service.py - Transaction import → Request and response schemas: uses schemas
backend/app/services/upload_service.py