How vismay-dev1/college-project works
College-Project is a role-based college management portal with a React client, Express API, JSON-backed server state, and browser-based offline fallback. Users sign in, the app loads bootstrap data, and role-specific portals perform college operations through the API or static fallback. The README also documents installable PWA support. The map preserves the major portal domains and supporting UI; unsampled portal and server internals are represented at their known module boundaries, so only documented or indexed relationships are drawn.
Main entry points: App.tsx App coordinator · client.ts API client · AppShell.tsx Portal shell · server.ts Express API
Components 20
Client Experience
- App coordinator
src/App.tsx - Sign-in
src/components/LoginView.tsx - Portal shell
src/components/AppShell.tsx - Install controls
src/components/PWAInstallButton.tsx - Connectivity status
src/components/OfflineIndicator.tsx
Role Workspaces
- Administration
src/components/portals/AdminPortal.tsx - Student services
src/components/portals/StudentPortal.tsx - Teacher services
src/components/portals/TeacherPortal.tsx - Parent services
src/components/portals/ParentPortal.tsx - Transport services
src/components/portals/TransportPortal.tsx - QR scanning
src/components/CameraQrScanner.tsx
Application Services
- API client
src/api/client.ts - Static fallback
src/api/staticFallback.ts - Express API
server.ts
Data and Shared Logic
- JSON database
data/college360.db.json - Database access
server/db.ts - Credential security
server/cryptoUtils.ts - College rules
src/shared/collegeLogic.ts - Demo seed data
src/shared/seedData.ts
Other components
- College user
Connections 30
- College user → Sign-in: signs in
src/components/LoginView.tsx - Sign-in → API client: authenticates via
src/components/LoginView.tsx - App coordinator → API client: loads bootstrap
src/App.tsx - App coordinator → Sign-in: renders
src/App.tsx - App coordinator → Administration: selects role view
src/App.tsx - App coordinator → Student services: selects role view
src/App.tsx - App coordinator → Teacher services: selects role view
src/App.tsx - App coordinator → Parent services: selects role view
src/App.tsx - App coordinator → Transport services: selects role view
src/App.tsx - App coordinator → Connectivity status: renders
src/App.tsx - Administration → API client: requests operations
src/components/portals/AdminPortal.tsx - Student services → API client: requests operations
src/components/portals/StudentPortal.tsx - Teacher services → API client: requests operations
src/components/portals/TeacherPortal.tsx - Transport services → API client: requests operations
src/components/portals/TransportPortal.tsx - Parent services → Portal shell: uses shell
src/components/portals/ParentPortal.tsx - Student services → Portal shell: uses shell
src/components/portals/StudentPortal.tsx - Teacher services → Portal shell: uses shell
src/components/portals/TeacherPortal.tsx - Transport services → Portal shell: uses shell
src/components/portals/TransportPortal.tsx - Administration → Portal shell: uses shell
src/components/portals/AdminPortal.tsx - Transport services → QR scanning: uses scanner
src/components/portals/TransportPortal.tsx - Portal shell → Install controls: renders
src/components/AppShell.tsx - API client → Static fallback: delegates offline
src/api/client.ts - API client → Express API: sends API requests
- Express API → Database access: loads and updates
server.ts - Database access → JSON database: reads and writes
README.md - Express API → Credential security: uses credential security
server.ts - Express API → College rules: validates rules
server.ts - Express API → Demo seed data: uses seed data
server.ts - Static fallback → College rules: uses rules
src/api/staticFallback.ts - Static fallback → Demo seed data: uses demo data
src/api/staticFallback.ts