3.8 KiB
3.8 KiB
Backend Documentation Index
Start Here
- Repository working rules:
../../CLAUDE.md - Backend architecture:
backend-architecture.md - Database schema:
database-schema.md - Error handling:
error-handling.md
Read the repository rules first, then use the backend architecture document as the default development contract for backend work. Every product slice and entity has its own document following the per-slice template (Purpose / Slice Files by layer / API / Access Rules / Tenant Scope / Data Contract / Behavior / Tests / Related).
Architecture And Foundations
backend-architecture.md: three-layer architecture (API -> BLL -> DAL), import direction, module-authoring factories.shared-crud-factories.md: the CRUD service/controller/router factories, repository helpers, and shared service helpers every generic-CRUD slice is built from.database-schema.md: generated table/column/relation reference.migrations-and-seeders.md: the Umzug runner, file conventions, and how to author a migration/seeder.error-handling.md: centralizedAppErrorpipeline and error body shape.
Auth And Access
auth-profile.md: sign-in, profile,GET /api/auth/me, OAuth, permission model.cookie-auth.md: HttpOnly cookie sessions and refresh rotation.permissions.md: the${METHOD}_${ENTITY}permission catalog and enforcement.roles.md: roles entity and role<->permission linkage.users.md: users entity, invitations, and CSV bulk import.
Product Feature Slices
campus-attendance.mdcampus-catalog.md: public campus records and branding.communications.mdcontent-catalog.mddocuments.mdframe-entries.mdpersonality-quiz-results.mdsafety-quiz-results.mdstaff-attendance.mduser-progress.mdwalkthrough-checkins.md
Generic CRUD Entity Slices
One document per entity (assembled from the shared CRUD factories; identical 9-endpoint surface —
see shared-crud-factories.md).
- People:
students.md,staff.md,guardians.md,organizations.md. - Academics:
classes.md,subjects.md,class_subjects.md,class_enrollments.md,academic_years.md,assessments.md,assessment_results.md,grades.md. - Attendance:
attendance_sessions.md,attendance_records.md. - Finance:
invoices.md,payments.md,fee_plans.md. - Scheduling:
timetables.md,timetable_periods.md. - Messaging:
messages.md,message_recipients.md. - Access:
campuses.md(authenticated CRUD),roles.md.
Infrastructure Slices
file.md: upload/download, storage backend, ownership notes.search.md: cross-entity search endpoint.email.md: transactional email senders and HTML templates.shared-crud-factories.md: shared CRUD building blocks.migrations-and-seeders.md: Umzug runner and conventions.