Multi-Tenant Employee Attendance Management System
WorkTrack helps companies track employee attendance across hybrid work environments. Managers get full visibility into attendance analytics, late tracking, and reports. Employees get a simple self-service check-in/out experience.
| Layer | Technology |
|---|---|
| Framework | TanStack Start (React 19, SSR) |
| Routing | TanStack Router (file-based) |
| API | tRPC (type-safe RPC) |
| Database | Cloudflare D1 (SQLite at the edge) |
| ORM | Drizzle ORM |
| Auth | Better Auth |
| Styling | Tailwind CSS v4 + shadcn/ui |
| Runtime | Cloudflare Workers |
pnpm install
cp .env.example .env
# Edit .env with your configuration
pnpm db:migrate:local
pnpm devpnpm dev # Start development server
pnpm build # Build for production
pnpm deploy # Build + deploy to Cloudflare Workers
pnpm check # Lint and format check
pnpm fix # Auto-fix lint/format issues
pnpm typecheck # TypeScript type check
pnpm db:generate # Generate DB migrations from schema
pnpm db:migrate:local # Apply migrations locally
pnpm db:migrate:prod # Apply migrations to productionBETTER_AUTH_SECRET=<generate with: openssl rand -base64 32>
BETTER_AUTH_URL=http://localhost:3000
VITE_BETTER_AUTH_URL=http://localhost:3000