How sorded/cvm-elib-demo works
DVM E-Library is a browser-based college resource library and administration prototype. Users sign in, browse or search subjects and resources, then open resources for reading or viewing; faculty and managers can publish resources, while administrators manage users, catalog metadata, announcements, reports, and audit activity. The sampled services use a local browser database with persistent storage and live-update subscriptions. The README is empty, and many page implementations were not sampled, so those capability branches are shown from the route table and source index without inferring unshown page-to-service calls.
Main entry points: App.tsx Route and guard layer · resourceService.ts Resource catalog service · store.ts Local data store · authService.ts Authentication service
Components 25
App and access
- Route and guard layer
src/App.tsx - Sign-in
src/pages/auth/LoginPage.tsx - Session state
src/hooks/useSession.ts - Authentication service
src/services/authService.ts - Navigation configuration
src/config/navigation.ts
Student library
- Library home
src/pages/student/HomePage.tsx - Resource search
src/pages/student/SearchPage.tsx - Subject catalog
src/pages/student/SubjectsPage.tsx - Resource details
src/pages/student/ResourcePage.tsx - Reader and watch
src/pages/student/ReaderPage.tsx - Saved library
src/pages/student/LibraryPage.tsx
Publishing
- Resource management
src/pages/manage/ManageResourcesPage.tsx - Resource publishing form
src/pages/manage/ResourceFormPage.tsx
Administration and data
- Resource catalog service
src/services/resourceService.ts - User administration
src/pages/admin/UsersPage.tsx - Admin interface parts
src/components/admin/AdminUi.tsx - Subject administration
src/pages/admin/SubjectsAdminPage.tsx - Resource type administration
src/pages/admin/ResourceTypesPage.tsx - Announcements
src/pages/admin/AnnouncementsPage.tsx - Reports
src/pages/admin/ReportsPage.tsx - Audit service
src/services/auditService.ts - User service
src/services/userService.ts - Local data store
src/services/store.ts - Live update hook
src/hooks/useLive.ts
Other components
- Library user
Connections 35
- Library user → Route and guard layer: opens app
- Route and guard layer → Sign-in: routes to
src/App.tsx - Route and guard layer → Library home: routes to
src/App.tsx - Route and guard layer → Resource search: routes to
src/App.tsx - Route and guard layer → Subject catalog: routes to
src/App.tsx - Route and guard layer → Resource details: routes to
src/App.tsx - Route and guard layer → Reader and watch: routes to
src/App.tsx - Route and guard layer → Saved library: routes to
src/App.tsx - Route and guard layer → Resource management: routes to
src/App.tsx - Route and guard layer → Resource publishing form: routes to
src/App.tsx - Route and guard layer → User administration: routes to
src/App.tsx - Route and guard layer → Subject administration: routes to
src/App.tsx - Route and guard layer → Resource type administration: routes to
src/App.tsx - Route and guard layer → Announcements: routes to
src/App.tsx - Route and guard layer → Reports: routes to
src/App.tsx - Route and guard layer → Navigation configuration: uses roles
src/App.tsx - Sign-in → Authentication service: authenticates with
- Session state → Authentication service: reads session
src/hooks/useSession.ts - Authentication service → User service: checks account
src/services/authService.ts - Authentication service → Local data store: reads and updates
src/services/authService.ts - Resource management → Resource catalog service: lists and changes
src/pages/manage/ManageResourcesPage.tsx - Resource catalog service → Local data store: reads and commits
src/services/resourceService.ts - Resource catalog service → Audit service: logs actions
src/services/resourceService.ts - User service → Local data store: reads and commits
src/services/userService.ts - User service → Audit service: logs actions
src/services/userService.ts - User administration → Admin interface parts: uses controls
src/pages/admin/UsersPage.tsx - User administration → User service: manages accounts
src/pages/admin/UsersPage.tsx - Audit service → Local data store: reads and commits
src/services/auditService.ts - Live update hook → Local data store: subscribes to changes
src/hooks/useLive.ts - Library home → Resource catalog service: loads resources
- Resource search → Resource catalog service: searches catalog
src/pages/student/SearchPage.tsx - Resource details → Resource catalog service: loads resource
- Reader and watch → Resource catalog service: loads content
- Announcements → Local data store: uses data
- Reports → Local data store: uses data