How thequietbeatle/nurserylink works
NurseryLink is a full-stack nursery-management app. Teachers use a class roster to record attendance and care events; parents sign in to review their children’s histories and notifications; administrators manage accounts, classes, teacher assignments, and parent-child links. The React portals call a JWT-aware API helper, while Express routes dispatch to controllers that query PostgreSQL and support notification and email delivery. Domain endpoints are grouped where their individual implementations were not sampled; those links are shown only where the README or source index supports them.
Main entry points: App.tsx SPA routes · api.ts API client · TeacherDashboard.tsx Teacher roster · Administrator.tsx Admin portal
Components 22
Web experience
- SPA routes
NurseryLinkFront/src/App.tsx - Sign-in
NurseryLinkFront/src/components/signpage/signing.tsx - API client
NurseryLinkFront/src/lib/api.ts
Care records
- Parent dashboard
NurseryLinkFront/src/components/parents/ParentDashboard.tsx - Child history
NurseryLinkFront/src/components/parents/child/child_dashboard.tsx - Notification inbox
NurseryLinkFront/src/components/parents/Events.tsx - Teacher roster
NurseryLinkFront/src/components/teacher/TeacherDashboard.tsx - Roster card
NurseryLinkFront/src/components/teacher/RosterCard.tsx - Care logging
NurseryLinkFront/src/components/teacher
Nursery administration
- Admin portal
NurseryLinkFront/src/components/admin/Administrator.tsx - Class management
NurseryLinkFront/src/components/admin/ClassesAndStudents.tsx - Teacher management
NurseryLinkFront/src/components/admin/teacherManagement.tsx - Parent linkage
NurseryLinkFront/src/components/admin/parentLinkage.tsx
API and security
- API routes
backend/src/app.ts - Token and privilege checks
backend/src/middlewares/verifyToken.ts - Domain controllers
backend/src/controllers
Persistence and alerts
- PostgreSQL pool
backend/src/config/DB.ts - PostgreSQL
- In-app notifications
backend/src/services/notify.ts - Email delivery
backend/src/services/mailer.ts
Other components
- Visitor or user
- Resend
Connections 25
- Visitor or user → SPA routes: uses
- SPA routes → Sign-in: routes to
NurseryLinkFront/src/App.tsx - SPA routes → Parent dashboard: routes to
NurseryLinkFront/src/App.tsx - SPA routes → Child history: routes to
NurseryLinkFront/src/App.tsx - SPA routes → Notification inbox: routes to
NurseryLinkFront/src/App.tsx - SPA routes → Teacher roster: routes to
NurseryLinkFront/src/App.tsx - SPA routes → Admin portal: routes to
NurseryLinkFront/src/App.tsx - Sign-in → API client: authenticates via
NurseryLinkFront/src/components/signpage/signing.tsx - Parent dashboard → API client: fetches data via
- Child history → API client: fetches data via
- Notification inbox → API client: fetches data via
NurseryLinkFront/src/components/parents/Events.tsx - Teacher roster → API client: loads roster via
NurseryLinkFront/src/components/teacher/TeacherDashboard.tsx - Teacher roster → Roster card: renders
NurseryLinkFront/src/components/teacher/TeacherDashboard.tsx - Teacher roster → Care logging: opens forms
NurseryLinkFront/src/components/teacher/TeacherDashboard.tsx - Admin portal → Class management: provides management
NurseryLinkFront/src/App.tsx - Admin portal → Teacher management: provides management
NurseryLinkFront/src/App.tsx - Admin portal → Parent linkage: provides management
NurseryLinkFront/src/App.tsx - API client → API routes: fetches JSON
- API routes → Domain controllers: dispatches
backend/src/app.ts - API routes → Token and privilege checks: guards data routes
- Domain controllers → PostgreSQL pool: queries through
backend/src/controllers/accountController.ts - PostgreSQL pool → PostgreSQL: reads and writes
- Domain controllers → In-app notifications: creates notifications
backend/src/controllers/notificationController.ts - Domain controllers → Email delivery: sends email
backend/src/controllers/notificationController.ts - Email delivery → Resend: delivers through