How zxmodren/nextjs-schoolmanagementsystem-template works
Project type and purpose
• This is a full-stack web application (Next.js SMS template) for school administration, teachers, and students.
• Frontend: Next.js (React) with App Router (app/), server components, client components, and UI components.
• Backend: Serverless API routes (under app/api/), NextAuthV5 authentication (auth.ts, auth.config.ts), Prisma ORM with PostgreSQL (prisma/), Firebase Storage and Supabase for media, and email functionality via Resend and custom mail utility.
File structure
• Top-level:
• app/ contains pages, layouts, protected routes, and REST API handlers.
• components/ holds reusable UI modules (dashboard, tables, auth forms).
• lib/ includes services for auth, database connection, Firebase, email, token management.
• prisma/ defines the data model (schema.prisma) and migrations.
• actions/ contains NextAuth action handlers (login, register, password reset).
• hooks/ and data/ provide client-side utilities and mock or initial datasets.
• The presence of app/api/*/route.ts files indicates a serverless-style backend; Next.js builds them as micro-endpoints.
Key points from README
• Core features: Student/Teacher/Class/Schedule/Assignment management.
• Tech stack: Next.js, React, Prisma + PostgreSQL, NextAuthV5, Firebase Storage, Supabase, serverless API routes.