Skip to content

ahargunyllib/work-track

Repository files navigation

WorkTrack

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.

Tech Stack

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

Getting Started

pnpm install
cp .env.example .env
# Edit .env with your configuration
pnpm db:migrate:local
pnpm dev

Commands

pnpm 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 production

Environment Variables

BETTER_AUTH_SECRET=<generate with: openssl rand -base64 32>
BETTER_AUTH_URL=http://localhost:3000
VITE_BETTER_AUTH_URL=http://localhost:3000

About

Multi-Tenant Employee Attendance Management System

Resources

Stars

Watchers

Forks

Contributors

Languages