How aadil-4u/savify works
Savify is a personal-finance web app. Users register or sign in, then manage transactions and categories, review dashboard summaries and budgets, and configure account, currency, and theme preferences. The React pages call a centralized Axios client; the Express API routes requests to controllers, which operate on MongoDB models or exchange-rate and email services. The README documents additional capabilities such as CSV export, OTP recovery, and atomic account deletion. Some frontend-to-API and unsampled route details are documented or implied rather than visible in excerpts, so those links are marked unverified.
Main entry points: App.jsx App routing · api.js HTTP client · authController.js Account workflows · server.js Express API
Components 25
Web application
- App routing
frontend/src/App.jsx - Auth screens
frontend/src/pages/Login.jsx - Finance screens
frontend/src/pages/Dashboard.jsx - Category screens
frontend/src/pages/Categories.jsx - Transaction screens
frontend/src/pages/Transactions.jsx - Settings screen
frontend/src/pages/Settings.jsx - Auth context
frontend/src/context/AuthContext.jsx - Theme context
frontend/src/context/ThemeContext.jsx - HTTP client
frontend/src/services/api.js
Identity and security
- Auth routes
backend/routes/authRoutes.js - JWT protection
backend/middleware/authMiddleware.js - Account workflows
backend/controllers/authController.js - Email delivery
backend/services/emailService.js
Finance services
- Transaction routes
backend/routes/transactionRoutes.js - Transactions and analytics
backend/controllers/transactionController.js - Categories and budgets
backend/controllers/categoryController.js - Currency routes
backend/routes/currencyRoutes.js - Currency rates
backend/services/exchangeRateService.js
API and persistence
- Express API
backend/server.js - User records
backend/models/User.js - Transaction records
backend/models/Transaction.js - Category records
backend/models/Category.js
Other components
- User
- MongoDB
- Exchange-rate API
Connections 38
- User → App routing: uses
frontend/src/App.jsx - App routing → Auth screens: routes to
frontend/src/App.jsx - App routing → Finance screens: routes to
frontend/src/App.jsx - App routing → Category screens: routes to
frontend/src/App.jsx - App routing → Transaction screens: routes to
frontend/src/App.jsx - App routing → Settings screen: routes to
frontend/src/App.jsx - App routing → Auth context: provides
frontend/src/App.jsx - App routing → Theme context: provides
frontend/src/App.jsx - Auth screens → Auth context: uses
frontend/src/pages/Login.jsx - Auth context → HTTP client: sends requests
frontend/src/context/AuthContext.jsx - Finance screens → HTTP client: sends requests
frontend/src/pages/Dashboard.jsx - Category screens → HTTP client: sends requests
frontend/src/pages/Categories.jsx - Transaction screens → HTTP client: sends requests
frontend/src/pages/Transactions.jsx - Settings screen → HTTP client: sends requests
frontend/src/pages/Settings.jsx - HTTP client → Express API: calls REST API
- Express API → MongoDB: connects
backend/server.js - Express API → Auth routes: mounts routes
backend/server.js - Express API → Transaction routes: mounts routes
backend/server.js - Express API → Currency routes: mounts routes
backend/server.js - Auth routes → Account workflows: dispatches to
backend/routes/authRoutes.js - Auth routes → JWT protection: protects routes
backend/routes/authRoutes.js - Account workflows → User records: reads and writes
backend/controllers/authController.js - Account workflows → Transaction records: deletes records
backend/controllers/authController.js - Account workflows → Category records: deletes records
backend/controllers/authController.js - Account workflows → Email delivery: sends email
backend/controllers/authController.js - Transaction routes → Transactions and analytics: dispatches to
backend/routes/transactionRoutes.js - Transaction routes → JWT protection: protects routes
backend/routes/transactionRoutes.js - Transactions and analytics → Transaction records: reads and writes
backend/controllers/transactionController.js - Transactions and analytics → Category records: reads and writes
backend/controllers/transactionController.js - Transactions and analytics → Currency rates: gets rates
backend/controllers/transactionController.js - Categories and budgets → Transaction records: queries spending
backend/controllers/categoryController.js - Categories and budgets → Category records: reads and writes
backend/controllers/categoryController.js - Categories and budgets → Currency rates: gets rates
backend/controllers/categoryController.js - Currency routes → Currency rates: dispatches to
- Currency rates → Exchange-rate API: fetches rates
backend/services/exchangeRateService.js - User records → MongoDB: persists in
- Transaction records → MongoDB: persists in
- Category records → MongoDB: persists in