How academic-curator/school-curator works
Curator Academy is a role-based school management application. Users enter through login and role-specific dashboards, then work with school records and operational modules; administrators can also load initial school data from a workbook. The README documents academics, attendance, finance, timetables, facilities, reports, notifications, settings, and profile self-service, while the sampled implementation shows the shared module workspace, dashboard data loading, selected APIs, and persistence helpers. Some module implementations are unsampled, so their runtime links are not inferred.
Main entry points: prisma.ts Prisma client · DashboardHome.tsx Dashboard · students/route.ts Student records · [[...path]]/route.ts Versioned API
Components 22
User experience
- Sign-in
components/LoginForm.tsx - Application shell
components/AppShell.tsx - Dashboard
components/DashboardHome.tsx - Module workspace
components/ModulePage.tsx - Module views
components/ModuleTabs.tsx - Setup screen
components/SeedSetupScreen.tsx
School operations
- School data loader
lib/school-data.ts - Student records
app/api/students/route.ts - Staff records
app/api/staff/route.ts - Departments
app/api/departments/route.ts - Class diary
app/api/diary/route.ts - Notifications
app/api/notifications/route.ts - Other school modules
components/ModuleTabs.tsx
Application APIs
- Login API
app/api/auth/login/route.ts - Versioned API
app/api/v1/[[...path]]/route.ts - Workbook import
app/api/seed-data/load/route.ts
Shared services
- Role access
lib/access.ts - Session service
lib/auth.ts - App settings
lib/app-settings.ts - PostgreSQL
prisma/schema.prisma - Prisma client
lib/prisma.ts
Other components
- School users
Connections 22
- School users → Sign-in: sign in
README.md - School users → Other school modules: use school modules
README.md - School users → Setup screen: set up school
README.md - Login API → Session service: issue session
app/api/auth/login/route.ts - Login API → Prisma client: look up user
app/api/auth/login/route.ts - Session service → Prisma client: check token
lib/auth.ts - Dashboard → School data loader: load snapshot
app/dashboard/page.tsx - Dashboard → Application shell: render within
app/dashboard/page.tsx - Dashboard → App settings: load settings
app/dashboard/page.tsx - Module workspace → Module views: render modules
components/ModulePage.tsx - Student records → Session service: check session
app/api/students/route.ts - Student records → Role access: enforce roles
app/api/students/route.ts - Student records → Prisma client: read and write
app/api/students/route.ts - Staff records → Prisma client: access records
app/api/staff/route.ts - Departments → Prisma client: access records
app/api/departments/route.ts - Class diary → Prisma client: access entries
app/api/diary/route.ts - Notifications → Prisma client: access notices
app/api/notifications/route.ts - Versioned API → Prisma client: access school data
app/api/v1/[[...path]]/route.ts - Versioned API → Role access: check permissions
app/api/v1/[[...path]]/route.ts - Versioned API → App settings: check exam rules
app/api/v1/[[...path]]/route.ts - Workbook import → Prisma client: load workbook data
app/api/seed-data/load/route.ts - Prisma client → PostgreSQL: persist records
README.md