Backend Architecture

ArchitectureVerifiedShare on

Server side of ODAK.

HM Redowan1 min readUpdated 2026-12-04

Bu sayfanın Türkçe çevirisi editör incelemesinde. İngilizce sürüm gösteriliyor.

  • TanStack Start server running on Cloudflare Workers.
  • Server routes under src/routes/api/public/ for phones and teachers.
  • Server functions (*.functions.ts) for admin, teacher and device management.
  • PostgreSQL with row-level security; staff access goes through the signed-in user, device API uses a server-only admin client after verifying the device token.
  • SQL functions hold critical rules: teacher_unlock_lesson, teacher_relock_lesson, teacher_unlock_student, teacher_save_attendance, admin_save_attendance, approve_attendance.
  • Triggers for audit logging, approval stamping, timestamps and data consistency.
Bu sayfa yardımcı oldu mu?