How nourchene-hamrita/infoplus works
InfoPlus is a school-management product: a React Native app for learners and school staff backed by an Express/MongoDB API. Users authenticate, enter the app’s navigation, and access academic and administrative features such as assignments, attendance, results, events, schedules, payments, and complaints. The backend also handles accounts, training formations, and email. The excerpts support the server’s route registration, authentication/model interactions, and selected app dependencies; many feature screens and controllers were not sampled, so uncertain links are dashed.
Main entry points: index.js HTTP and socket server · screens Operations screens · formations.js Formation routes · App.js App shell
Components 27
Mobile app
- App shell
infoPlus_App/App.js - Auth state
infoPlus_App/context/AuthContext.js - Navigation
infoPlus_App/navigators - Data fetching
infoPlus_App/hooks/useFetch.js - Academic screens
infoPlus_App/screens - Operations screens
infoPlus_App/screens - API configuration
infoPlus_App/utils/config.js
API and access
- HTTP and socket server
backend/index.js - Auth routes
backend/routes/auth.js - Account authentication
backend/controllers/auth.js - User records
backend/models/User.js - Role profiles
backend/models
Academic services
- Formation routes
backend/routes/formations.js - Formation service
backend/controllers/formation.js - Formations and classes
backend/models/Formation.js - Assignment routes
backend/routes/assignments.js - Timetables
backend/routes/timetables.js - Results
backend/routes/result.js
School operations
- Events
backend/routes/events.js - Intern records
backend/models/Intern.js - Payments
backend/routes/paiement.js - Complaints
backend/routes/reclamation.js - Email routes
backend/routes/emailRoutes.js - Email delivery
backend/controllers/emailController.js
Other components
- App user
- MongoDB
- SMTP service
Connections 35
- App user → App shell: uses
- App shell → Navigation: opens
infoPlus_App/App.js - App shell → Auth state: provides auth
infoPlus_App/App.js - Navigation → Academic screens: routes to
infoPlus_App/navigators/tabs.js - Navigation → Operations screens: routes to
infoPlus_App/navigators/tabs.js - Auth state → API configuration: uses URL
infoPlus_App/context/AuthContext.js - Auth state → Auth routes: logs in
- Academic screens → Data fetching: uses
infoPlus_App/screens/Events/DetailEvent.js - Data fetching → API configuration: requests
- API configuration → HTTP and socket server: targets API
- HTTP and socket server → MongoDB: connects
backend/index.js - HTTP and socket server → Auth routes: mounts
backend/index.js - HTTP and socket server → Formation routes: mounts
backend/index.js - HTTP and socket server → Assignment routes: mounts
backend/index.js - HTTP and socket server → Timetables: mounts
backend/index.js - HTTP and socket server → Results: mounts
backend/index.js - HTTP and socket server → Events: mounts
backend/index.js - HTTP and socket server → Payments: mounts
backend/index.js - HTTP and socket server → Complaints: mounts
backend/index.js - HTTP and socket server → Email routes: mounts
backend/index.js - Auth routes → Account authentication: dispatches
backend/routes/auth.js - Account authentication → User records: reads and writes
backend/controllers/auth.js - Account authentication → Role profiles: reads and writes
backend/controllers/auth.js - Formation routes → Formation service: dispatches
backend/routes/formations.js - Formation routes → Intern records: uses records
- Assignment routes → Formations and classes: reads
backend/routes/assignments.js - Timetables → Intern records: uses records
backend/routes/timetables.js - Email routes → Email delivery: dispatches
backend/routes/emailRoutes.js - Email delivery → SMTP service: sends mail
backend/controllers/emailController.js - Academic screens → Formation routes: requests academic data
- Operations screens → Payments: requests payments
- Operations screens → Complaints: submits complaints
- Operations screens → Events: requests events
- Operations screens → Timetables: requests schedules
- Academic screens → Results: requests results