How teodoro123s/f1kd works
This is a role-based maternal and child health operations application, despite the README describing only a starter framework. The main workflow is staff authentication, organizing communities and beneficiary records, recording or monitoring child/maternal progress, and producing reports. The frontend also supports program and receipt management and user administration; the Express server exposes corresponding API domains. Some subsystem internals were not sampled, so the graph shows documented route dispatch and explicit client calls without assuming unverified database relationships.
Main entry points: index.js Express API · App.jsx Route application · useBeneficiarySelection.js Beneficiary selection · BeneficiaryPage.jsx Beneficiary records
Components 26
Web application
- Route application
src/App.jsx - Authentication
src/auth/AuthProvider.jsx
Beneficiary care
- Beneficiary records
src/pages/Beneficiary/BeneficiaryPage.jsx - Beneficiary selection
src/pages/Beneficiary/hooks/useBeneficiarySelection.js - Mother API
src/api/mothers.js - Child API
src/api/children.js - Growth monitoring
src/pages/Monitoring/MonitoringPage.jsx
Field operations
- Community management
src/pages/Community/CommunityModulePage.jsx - Community service
src/pages/Community/communityService.js - Dashboard
src/pages/Dashboard/DashboardPage.jsx - User management
src/pages/UserManagement/UserManagementPage.jsx - User operations
src/pages/UserManagement/useUserManagement.js
Programs and reporting
- Program management
src/pages/Program/ProgramPage.jsx - Progress reports
src/pages/ProgressReport/ProgressReport.jsx
API services
- User API
src/api/users.js - Express API
server/index.js - Auth routes
server/routes/auth.js - Community routes
server/routes/community.js - Mother routes
server/routes/mothers.js - Child routes
server/routes/children.js - Program routes
server/routes/programs.js - Report routes
server/routes/progressReport.js - Document routes
server/routes/documents.js - MySQL database
server/db.js - Document uploads
server/middleware/documentUpload.js
Other components
- Staff
Connections 28
- Staff → Route application: uses
- Route application → Authentication: checks session
- Route application → Community management: routes to
- Route application → Beneficiary records: routes to
- Route application → Growth monitoring: routes to
- Route application → Dashboard: routes to
- Route application → Program management: routes to
- Route application → Progress reports: routes to
- Route application → User management: routes to
- Community management → Community service: manages data
- Community service → Express API: requests API
- Beneficiary records → Beneficiary selection: loads details
- Beneficiary selection → Mother API: requests mother
- Beneficiary selection → Child API: requests children
- Mother API → Express API: requests API
- Child API → Express API: requests API
- User management → User operations: manages users
- User operations → User API: calls
- User API → Express API: requests API
- Express API → Auth routes: dispatches
- Express API → Community routes: dispatches
- Express API → Mother routes: dispatches
- Express API → Child routes: dispatches
- Express API → Program routes: dispatches
- Express API → Report routes: dispatches
- Express API → Document routes: dispatches
- Express API → MySQL database: waits for readiness
- Express API → Document uploads: serves uploads