How eccureuil/mon_argent_apk works
Mon Argent is a personal-finance app for tracking current-account wallets, savings, bills, categories, and monthly reports. The main user flow runs from sign-in or initial setup into the dashboard, where account and bill activity is reviewed and users can transfer money; dedicated screens manage transactions, savings, bills, and reports. The client calls an API and also keeps SQLite data for fallback reads, while the server exposes domain routes backed by a database. README capabilities are included where source excerpts were unavailable; uncertain wiring is omitted.
Main entry points: index.ts API router · api.ts API client · index.tsx Dashboard · useFactures.ts Bill data
Components 31
Mobile app
- Sign-in and setup
app/(auth) - Dashboard
app/(tabs)/index.tsx - Session state
hooks/useSession.tsx - User repository
database/userRepository.ts - Local SQLite
database/db.ts
Finance workflows
- Current account
app/(tabs)/courant.tsx - Savings
app/(tabs)/epargne.tsx - Bills
app/(tabs)/factures.tsx - Reports
app/(tabs)/rapport.tsx - Current-account data
hooks/useCourant.ts - Savings data
hooks/useEpargne.ts - Bill data
hooks/useFactures.ts - Report data
hooks/useRapport.ts
Account and preferences
- Categories
app/(tabs)/categories.tsx - Settings
app/(tabs)/parametres.tsx - Category data
hooks/useCategories.ts - Preferences
hooks/useParametres.ts - Notifications
services/notifications.ts
API backend
- API client
services/api.ts - API router
server/src/index.ts - Authentication routes
server/src/routes/auth.ts - Current-account routes
server/src/routes/courant.ts - Savings routes
server/src/routes/epargne.ts - Bill routes
server/src/routes/factures.ts - Report routes
server/src/routes/rapport.ts - Category routes
server/src/routes/categories.ts - Settings routes
server/src/routes/parametres.ts - Initial setup route
server/src/routes/initialSetup.ts - Token authentication
server/src/middleware/auth.ts - Server database
server/src/db/pool.ts
Other components
- User
Connections 39
- User → Sign-in and setup: signs in
- User → Dashboard: reviews finances
- Sign-in and setup → Session state: updates session
- Session state → User repository: authenticates
- User repository → API client: requests auth
- User repository → Local SQLite: caches user
- Dashboard → Current-account data: loads accounts
- Dashboard → Savings data: loads savings
- Dashboard → Bill data: loads bills
- Dashboard → Report data: loads summary
- Dashboard → API client: sends transfer
- Current account → Current-account data: manages transactions
- Savings → Savings data: manages deposits
- Bills → Bill data: manages bills
- Reports → Report data: loads analytics
- Categories → Category data: manages categories
- Settings → Preferences: updates preferences
- Bill data → Notifications: schedules reminders
- Current-account data → API client: requests account data
- Savings data → API client: requests savings data
- Bill data → API client: requests bill data
- Report data → API client: requests reports
- Category data → API client: requests categories
- Preferences → API client: requests settings
- Current-account data → Local SQLite: reads and caches
- Bill data → Local SQLite: reads and caches
- Category data → Local SQLite: reads and caches
- Report data → Local SQLite: fallback reads
- API client → API router: sends requests
- API router → Authentication routes: dispatches auth
- API router → Current-account routes: dispatches accounts
- API router → Savings routes: dispatches savings
- API router → Bill routes: dispatches bills
- API router → Report routes: dispatches reports
- API router → Category routes: dispatches categories
- API router → Settings routes: dispatches settings
- API router → Initial setup route: dispatches setup
- Authentication routes → Token authentication: protects routes
- Authentication routes → Server database: queries users