How djibril1215/medisys-frontend works
MediSys is a hospital-network management frontend. Staff sign in, then access guarded dashboard and patient pages; the dashboard loads network metrics and the patient page lists or creates patient records through API clients. The navigation also advertises personnel, consultations, hospitals, and statistics, and the API module configures clients for these services, but their page implementations and runtime links are not shown. The supplied README describes only a React/Vite template, so these capabilities are inferred from the sampled application source, not product documentation.
Main entry points: App.jsx Router and routes · Layout.jsx Navigation layout · AuthContext.jsx Auth state · Dashboard.jsx Activity dashboard
Components 16
Application shell
- Router and routes
src/App.jsx - Navigation layout
src/components/Layout.jsx
Authentication
- Route guard
src/components/ProtectedRoute.jsx - Auth state
src/context/AuthContext.jsx - Sign in
src/pages/Login.jsx
Hospital operations
- Activity dashboard
src/pages/Dashboard.jsx - Patient records
src/pages/Patients.jsx - Personnel navigation
src/components/Layout.jsx - Consultation navigation
src/components/Layout.jsx - Hospital navigation
src/components/Layout.jsx - Statistics navigation
src/components/Layout.jsx
API clients
- HTTP API clients
src/services/api.js
Other components
- Hospital staff
- Authentication service
- Statistics service
- Patient service
Connections 20
- Hospital staff → Sign in: enters credentials
src/pages/Login.jsx - Router and routes → Auth state: provides auth
src/App.jsx - Router and routes → Sign in: routes to
src/App.jsx - Router and routes → Route guard: protects routes
src/App.jsx - Router and routes → Navigation layout: wraps pages
src/App.jsx - Router and routes → Activity dashboard: routes to
src/App.jsx - Router and routes → Patient records: routes to
src/App.jsx - Sign in → Auth state: submits login
src/pages/Login.jsx - Auth state → HTTP API clients: uses auth client
src/context/AuthContext.jsx - Auth state → Authentication service: posts credentials
- Route guard → Auth state: checks user
src/components/ProtectedRoute.jsx - Navigation layout → Auth state: reads user, logs out
src/components/Layout.jsx - Navigation layout → Personnel navigation: shows route link
src/components/Layout.jsx - Navigation layout → Consultation navigation: shows route link
src/components/Layout.jsx - Navigation layout → Hospital navigation: shows route link
src/components/Layout.jsx - Navigation layout → Statistics navigation: shows route link
src/components/Layout.jsx - Activity dashboard → HTTP API clients: uses stats client
src/pages/Dashboard.jsx - Activity dashboard → Statistics service: loads dashboard metrics
- Patient records → HTTP API clients: uses patient client
src/pages/Patients.jsx - Patient records → Patient service: lists, creates records