How limense/educa-attendance-system works
Project type and purpose
• This is a full-stack Next.js web application for managing employees and attendances, with Supabase as the database and auth provider.
• Features include login/auth, admin and employee dashboards, CRUD operations for employees, attendance tracking, diagnostics, and system settings.
File structure
• src/app – Next.js App Router pages and API routes:
• app/api/employee/create/route.ts – backend API endpoint
• app/auth, app/dashboard, app/employees, etc. – page routes
• src/components – reusable React UI components organized by domain (admin, employees, ui)
• src/hooks – custom React hooks encapsulating data fetching and state logic
• src/services – business logic layer (attendance.service, employee.service, auth.service, etc.)
• src/repositories – data access layer (employee.repository)
• src/lib/supabase – Supabase client and server modules for database/auth integration
• database & scripts – SQL files and TS script for setting up/migrating the PostgreSQL database and RLS, Supabase auth integration
• config files – next.config.ts, tailwind.config.js, postcss.config.mjs, ESLint/TSConfig
README
• Confirms Next.js project bootstrapped with create-next-app
Key advice
• Be very detailed: include each layer and module group
• Authentication flow separately
• Both client-side and server-side database access