How karthik73271/pixel-product works
Smart Examination Section Management System digitizes exam administration from setup and room planning through seating allocation, publication, attendance, absentee reporting, analytics, and audit. Staff and students use a role-aware React portal; its API validates and authorizes requests before service logic accesses PostgreSQL under user-scoped transactions and RLS. Google sign-in is an optional authentication integration. The README documents the database and product capabilities; unsampled feature implementations are represented by their tree paths, and edges are limited to relationships supported by excerpts or explicit documentation.
Main entry points: api.ts API routing · index.ts PostgreSQL database · auth.ts Authentication routes · allocation.ts Seating allocation
Components 28
User portal
- Role-based application
src/App.tsx - Sign-in screen
src/pages/LoginPage.tsx - Student portal
src/pages/student/StudentPortalPage.tsx - API client
src/lib/api.ts - Session state
src/lib/auth.tsx
API and identity
- Authentication routes
server/routes/auth.ts - Google sign-in
server/auth/google.ts - HTTP application
server/app.ts - API routing
server/routes/api.ts - Request schemas
shared/schemas.ts - Session service
server/auth/session.ts - Mutation event feed
server/http/events.ts
Examination workflow
- Exam and catalog setup
src/pages/admin/ExamsPage.tsx - Room planning
src/pages/admin/RoomsPage.tsx - Seating allocation
server/services/allocation.ts - Allocation algorithm
server/services/allocator.ts - Exam publication
src/pages/admin/exam/PublishDialog.tsx - Attendance capture
server/services/attendance.ts - Attendance interface
src/pages/incharge/AttendancePage.tsx - Exam services
server/services/exams.ts - Catalog services
server/services/catalog.ts
Reporting and audit
- Absentee reports
src/pages/print/AbsenteePrintPage.tsx - Reports and analytics
server/services/reports.ts - Dashboard
server/services/dashboard.ts - Audit trail
server/services/audit.ts
Data security
- PostgreSQL database
server/db/index.ts
Other components
- Admin and in-charge
- Student
Connections 39
- Admin and in-charge → Role-based application: uses
- Student → Role-based application: uses
- Role-based application → Sign-in screen: routes to
src/App.tsx - Sign-in screen → Session state: signs in via
src/pages/LoginPage.tsx - Session state → API client: requests session
src/lib/auth.tsx - API client → HTTP application: calls API
- HTTP application → Authentication routes: mounts
server/app.ts - HTTP application → API routing: mounts
server/app.ts - Authentication routes → Session service: creates sessions
server/routes/auth.ts - Authentication routes → PostgreSQL database: checks credentials
server/routes/auth.ts - Session service → PostgreSQL database: reads and writes
server/auth/session.ts - Authentication routes → Google sign-in: configures sign-in
server/routes/auth.ts - HTTP application → Mutation event feed: broadcasts mutations
server/app.ts - Role-based application → Exam and catalog setup: routes to
src/App.tsx - Admin and in-charge → Room planning: plans rooms
- Admin and in-charge → Seating allocation: allocates seating
- Seating allocation → Allocation algorithm: delegates
server/services/allocation.ts - API routing → Seating allocation: dispatches
server/routes/api.ts - API routing → Attendance capture: dispatches
server/routes/api.ts - API routing → Exam services: dispatches
server/routes/api.ts - API routing → Catalog services: dispatches
server/routes/api.ts - API routing → Dashboard: dispatches
server/routes/api.ts - Exam and catalog setup → API client: submits requests
- Seating allocation → PostgreSQL database: reads and writes
server/services/allocation.ts - Exam services → PostgreSQL database: reads and writes
server/services/exams.ts - Attendance capture → PostgreSQL database: reads and writes
server/services/attendance.ts - Attendance interface → API client: submits attendance
src/pages/incharge/AttendancePage.tsx - Student portal → API client: requests portal data
- Admin and in-charge → Exam publication: publishes exams
- Attendance capture → Audit trail: records changes
server/services/attendance.ts - Seating allocation → Audit trail: records changes
server/services/allocation.ts - Dashboard → Attendance capture: aggregates attendance
server/services/dashboard.ts - API routing → Reports and analytics: dispatches
server/routes/api.ts - Admin and in-charge → Absentee reports: prints absentees
- Admin and in-charge → Reports and analytics: views reports
- Admin and in-charge → Audit trail: reviews history
- API routing → Request schemas: validates requests
server/routes/api.ts - Authentication routes → Request schemas: validates login
server/routes/auth.ts - Dashboard → PostgreSQL database: queries
server/services/dashboard.ts