How prowpdev/coop-financial-account-management- works
This repository implements cooperative financial-management software: staff administer members, loans, savings, share capital, accounting, configuration and reports, while members use a self-service portal. The React application presents these workflows and its API client supports authentication; the tree also contains a TypeScript/Express backend and a separate PHP API with overlapping domain services. The PHP loan and member-portal call paths and the TypeScript accounting engine are evidenced in sampled files; other capability branches are retained from the source index and tree, so their internal links are omitted where implementation evidence was unavailable.
Main entry points: App.tsx Staff workspace · MemberPortalController.php Member portal API · api.ts API routes · api.php API route map
Components 23
Web application
- Staff workspace
src/App.tsx - Member portal
src/components/member/MemberPortal.tsx - Administration
src/components/config/ConfigCenter.tsx - Super admin
src/components/admin/SuperAdminConsole.tsx - Reports
src/components/reports/ReportsModule.tsx - Authentication
src/components/auth/AuthModal.tsx - API client
src/services/api.ts
TypeScript backend
- API routes
server/routes/api.ts - Application data
server/db/database.ts - Accounting engine
server/services/accountingEngine.ts
PHP backend
- HTTP router
backend-php/app/Core/Router.php - API route map
backend-php/routes/api.php - Loan endpoints
backend-php/app/Controllers/LoanController.php - Member portal API
backend-php/app/Controllers/MemberPortalController.php
Financial domains
- Loan servicing
backend-php/app/Services/LoanService.php - Member servicing
backend-php/app/Services/MemberService.php - Savings servicing
backend-php/app/Services/SavingsService.php - Share capital
backend-php/app/Services/ShareCapitalService.php - Accounting services
backend-php/app/Services/AccountingService.php - Reporting
backend-php/app/Services/ReportService.php - Audit trail
backend-php/app/Core/AuditLogger.php
Other components
- Staff user
- Member
Connections 24
- Staff user → Staff workspace: uses
src/App.tsx - Member → Member portal: uses
- Staff workspace → Authentication: renders
src/App.tsx - Authentication → API client: calls
src/components/auth/AuthModal.tsx - Staff workspace → Administration: renders
src/App.tsx - Staff workspace → Member portal: renders
src/App.tsx - Staff workspace → Reports: renders
src/App.tsx - Staff user → Super admin: administers
- API client → API routes: requests
- API routes → Application data: reads and writes
server/routes/api.ts - API routes → Accounting engine: invokes
server/routes/api.ts - Accounting engine → Application data: reads
server/services/accountingEngine.ts - HTTP router → API route map: dispatches
backend-php/routes/api.php - API route map → Loan endpoints: routes to
backend-php/routes/api.php - Loan endpoints → Loan servicing: calls
backend-php/app/Controllers/LoanController.php - API route map → Member portal API: routes to
backend-php/routes/api.php - Member portal API → Member servicing: calls
backend-php/app/Controllers/MemberPortalController.php - Member portal API → Loan servicing: calls
backend-php/app/Controllers/MemberPortalController.php - Member portal API → Savings servicing: calls
backend-php/app/Controllers/MemberPortalController.php - Member portal API → Share capital: calls
backend-php/app/Controllers/MemberPortalController.php - Share capital → Accounting services: uses
backend-php/app/Services/ShareCapitalService.php - Loan servicing → Audit trail: records audit
backend-php/app/Services/LoanService.php - Member servicing → Audit trail: records audit
backend-php/app/Services/MemberService.php - Savings servicing → Audit trail: records audit
backend-php/app/Services/SavingsService.php