How abhi-code15/paylog works
Paylog is a personal INR finance tracker with shared-bill splitting and UPI-assisted payments. Users sign in, record or review personal transactions, manage groups and friends, split shared expenses, and settle balances; reports and CSV exports support review. The React app routes these workflows through a credentialed API client to Express endpoints backed by PostgreSQL. Exact-paise arithmetic and debt simplification are internal domain services. Relationships for unsampled pages and endpoints are limited to documented capabilities or SOURCE INDEX references; dashed links indicate documented but unverified runtime wiring.
Main entry points: app.js Express API · App.jsx App routing · pool.js Database access · api.js API client
Components 30
Web application
- App routing
src/App.jsx - Landing and sign-in
src/pages/LandingPage.jsx - Auth state
src/context/AuthContext.jsx - API client
src/services/api.js
Personal finance
- Dashboard
src/pages/DashboardPage.jsx - Transactions
src/components/modals/AddTransactionModal.jsx - Expense history
src/pages/ExpensesPage.jsx - UPI QR and outcome
src/components/upi/QrScanner.jsx - Reports and export
src/pages/ReportsPage.jsx
Shared expenses
- Groups
src/pages/GroupsPage.jsx - Group expenses
src/pages/GroupDetailsPage.jsx - Shared expense entry
src/components/modals/AddSharedExpenseModal.jsx - Friends
src/pages/FriendsPage.jsx - Settlement flow
src/components/modals/SettleUpModal.jsx
API and services
- Express API
server/app.js - Authentication
server/routes/auth.js - Transaction routes
server/routes/transactions.js - Group routes
server/routes/groups.js - Friend routes
server/routes/friends.js - Settlement routes
server/routes/settlements.js - UPI attempts
server/routes/paymentAttempts.js - Reports and CSV
server/routes/reports.js - Dashboard data
server/routes/dashboard.js - Paise arithmetic
server/services/moneyService.js - Debt simplifier
server/services/debtSimplifier.js - UPI link service
server/services/paymentService.js
Persistence
- Database access
server/db/pool.js - PostgreSQL
Other components
- User
- UPI app
Connections 47
- User → App routing: uses
README.md - App routing → Auth state: reads auth state
src/App.jsx - App routing → Landing and sign-in: shows signed out
src/App.jsx - App routing → Dashboard: routes to
src/App.jsx - App routing → Expense history: routes to
src/App.jsx - App routing → Groups: routes to
src/App.jsx - App routing → Group expenses: routes to
src/App.jsx - App routing → Friends: routes to
src/App.jsx - App routing → Reports and export: routes to
src/App.jsx - Landing and sign-in → Auth state: authenticates
src/pages/LandingPage.jsx - Auth state → API client: calls auth API
src/context/AuthContext.jsx - Dashboard → API client: loads overview
src/pages/DashboardPage.jsx - Expense history → API client: loads transactions
src/pages/ExpensesPage.jsx - Transactions → API client: records expense
src/components/modals/AddTransactionModal.jsx - Transactions → UPI QR and outcome: uses scanner
src/components/modals/AddTransactionModal.jsx - UPI QR and outcome → UPI app: launches payment
README.md - Groups → API client: loads groups
src/services/api.js - Group expenses → Shared expense entry: opens entry
src/pages/GroupDetailsPage.jsx - Group expenses → Settlement flow: opens settlement
src/pages/GroupDetailsPage.jsx - Group expenses → API client: loads group data
src/pages/GroupDetailsPage.jsx - Friends → API client: manages friends
src/services/api.js - Reports and export → API client: requests reports
src/pages/ReportsPage.jsx - API client → Express API: sends API requests
src/services/api.js - Express API → Authentication: mounts routes
server/app.js - Express API → Transaction routes: mounts routes
server/app.js - Express API → Group routes: mounts routes
server/app.js - Express API → Friend routes: mounts routes
server/app.js - Express API → Settlement routes: mounts routes
server/app.js - Express API → UPI attempts: mounts routes
server/app.js - Express API → Reports and CSV: mounts routes
server/app.js - Express API → Dashboard data: mounts routes
server/app.js - Transaction routes → Paise arithmetic: uses arithmetic
server/routes/transactions.js - Group routes → Paise arithmetic: splits amounts
server/routes/groups.js - Group routes → Debt simplifier: simplifies debts
server/routes/groups.js - Dashboard data → Paise arithmetic: calculates totals
server/routes/dashboard.js - Dashboard data → Debt simplifier: simplifies balances
server/routes/dashboard.js - UPI attempts → UPI link service: builds payment data
server/routes/paymentAttempts.js - Authentication → Database access: queries
server/routes/auth.js - Transaction routes → Database access: queries
server/routes/transactions.js - Group routes → Database access: queries
server/routes/groups.js - Friend routes → Database access: queries
server/routes/friends.js - UPI attempts → Database access: queries
server/routes/paymentAttempts.js - Reports and CSV → Database access: queries
- Settlement routes → Database access: queries
- Dashboard data → Database access: queries
server/routes/dashboard.js - Express API → Database access: configures sessions
server/app.js - Database access → PostgreSQL: queries database
server/db/pool.js