Spaces:
Running
Running
Commit History
-
Build a Cross‑Platform Time Clock App (Multi‑Company, Employees, Geotagging, Reports)
Verified signatureYou are Cursor, acting as a senior full‑stack engineer. Generate a production‑ready application with clean, modular code, strong typing, and tests. Use modern, boring tech that deploys easily. Tech Stack (preferred) Frontend: Next.js 14 (App Router), TypeScript, React Server Components where appropriate UI: Tailwind CSS + shadcn/ui + lucide-react icons State: React Query (TanStack Query) for data fetching; Zod for validation Auth: NextAuth (Auth.js) or Supabase Auth; support email+password first (can add OAuth later) Backend: Next.js API routes or Route Handlers; if using Supabase, leverage Database + RLS DB: PostgreSQL (Supabase). Use Prisma or Supabase SQL directly. Provide both options in code where feasible. Background jobs: Next.js Route Handlers / Edge Functions as needed Storage: Supabase storage for avatars/files Reports/Export: server-side CSV + PDF (e.g., pdf-lib or @react-pdf/renderer) Maps/Geotag: HTML5 Geolocation API in browser; store lat/long/accuracy; optiona…59f8f47