How marzouck13/mcs2 works
Mon Carnet Santé is a healthcare web frontend for patients and care professionals. Users sign in, then access role-specific patient-record, consent, QR-code, pharmacy, prescription, emergency, and teleconsultation features. The Express server delivers pages and assets, handles sessions, and proxies API requests to a separate backend; browser code uses a shared API client. The excerpts establish the server, session, proxy, and selected QR-code relationships; other page-to-API wiring is not asserted because it was not shown.
Main entry points: serveur.js Express server · session.routes.js Session routes · pages.routes.js Page routes · variables-environnement.js Runtime configuration
Components 22
Web delivery
- Express server
frontend-html/serveur.js - Page routes
frontend-html/src/routes/pages.routes.js - Page and asset paths
frontend-html/src/utilitaires/chemins.js - Runtime configuration
frontend-html/src/config/variables-environnement.js - Browser API client
frontend-html/public/js/api-client.js - API proxy
frontend-html/src/proxy/api.proxy.js
Identity and access
- Session routes
frontend-html/src/routes/session.routes.js - Login rate limit
frontend-html/src/intergiciels/limite-requetes.js - JWT verification
frontend-html/src/intergiciels/auth.js - Role checks
frontend-html/src/intergiciels/roles.js
Care workflows
- Professional workspace
frontend-html/public/js/pages - Consultation and records
frontend-html/public/js/pages/consultation.js - Prescriptions and pharmacy
frontend-html/public/js/pages/ordonnance.js - Teleconsultation and video
frontend-html/public/js/pages/teleconsultation.js - Emergency mode
frontend-html/public/js/pages/mode-urgence.js
Patient features
- Patient portal
frontend-html/public/js/pages/patient-tableau-bord.js - Patient records and consent
frontend-html/public/js/pages/patient-dossier.js - Patient QR codes
frontend-html/public/js/pages/patient-qr-proches.js - QR utilities
frontend-html/public/js/utilitaires-qr.js - Access journal
frontend-html/public/js/pages/patient-journal-acces.js
Other components
- Web user
- Healthcare API
Connections 19
- Web user → Express server: requests pages
frontend-html/serveur.js - Express server → Session routes: mounts /session
frontend-html/serveur.js - Express server → API proxy: mounts /api
frontend-html/serveur.js - Express server → Page routes: mounts pages
frontend-html/serveur.js - Express server → Page and asset paths: serves assets
frontend-html/serveur.js - Express server → Runtime configuration: reads settings
frontend-html/serveur.js - Page routes → JWT verification: checks tokens
frontend-html/src/routes/pages.routes.js - Page routes → Role checks: checks roles
frontend-html/src/routes/pages.routes.js - Page routes → Page and asset paths: resolves pages
frontend-html/src/routes/pages.routes.js - Session routes → Login rate limit: limits login
frontend-html/src/routes/session.routes.js - Session routes → Runtime configuration: uses settings
frontend-html/src/routes/session.routes.js - Session routes → Healthcare API: forwards sign-in
frontend-html/src/routes/session.routes.js - JWT verification → Runtime configuration: reads JWT settings
frontend-html/src/intergiciels/auth.js - API proxy → Runtime configuration: reads API settings
frontend-html/src/proxy/api.proxy.js - API proxy → Healthcare API: forwards API calls
frontend-html/src/proxy/api.proxy.js - Web user → Browser API client: uses client
- Browser API client → Session routes: calls session routes
frontend-html/public/js/api-client.js - Patient QR codes → Browser API client: loads and updates
frontend-html/public/js/pages/patient-qr-proches.js - Patient QR codes → QR utilities: shares QR
frontend-html/public/js/pages/patient-qr-proches.js