• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
DHIRAJ7655

DHIRAJ7655

Attendancetracker

Public
Like
Attendancetracker
Home
Code
3
backend
2
shared
1
README.md
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
Code
/
Search
README.md

Employee Attendance Tracker

A comprehensive attendance tracking system built with Hono, SQLite, and modern TypeScript.

Features

  • Employee Management: Add, edit, and manage employee records
  • Attendance Tracking: Clock in/out functionality with timestamp tracking
  • Reporting: View attendance reports and statistics
  • Real-time Updates: Live attendance status updates

Project Structure

├── backend/
│   ├── database/
│   │   ├── migrations.ts    # Database schema setup
│   │   └── queries.ts       # Database query functions
│   ├── routes/
│   │   ├── employees.ts     # Employee CRUD operations
│   │   ├── attendance.ts    # Attendance tracking endpoints
│   │   └── reports.ts       # Reporting endpoints
│   └── index.ts             # Main Hono app entry point
├── frontend/
│   ├── components/
│   │   ├── App.tsx          # Main application component
│   │   ├── EmployeeList.tsx # Employee management
│   │   ├── AttendanceTracker.tsx # Clock in/out interface
│   │   └── Reports.tsx      # Attendance reports
│   ├── services/
│   │   └── api.ts           # API service layer
│   ├── types/
│   │   └── index.ts         # TypeScript interfaces
│   ├── index.html           # Main HTML template
│   └── index.tsx            # Frontend entry point
└── shared/
    └── types.ts             # Shared type definitions

API Endpoints

Employees

  • GET /api/employees - List all employees
  • POST /api/employees - Create new employee
  • PUT /api/employees/:id - Update employee
  • DELETE /api/employees/:id - Delete employee

Attendance

  • POST /api/attendance/clock-in - Clock in employee
  • POST /api/attendance/clock-out - Clock out employee
  • GET /api/attendance/status/:employeeId - Get current status
  • GET /api/attendance/history/:employeeId - Get attendance history

Reports

  • GET /api/reports/daily - Daily attendance report
  • GET /api/reports/employee/:id - Employee-specific report

Getting Started

  1. The backend will automatically set up the database tables on first run
  2. Navigate to the app to start managing employees and tracking attendance
  3. Use the attendance tracker to clock employees in and out
  4. View reports to analyze attendance patterns

Technology Stack

  • Backend: Hono (Express-like framework for Deno)
  • Database: SQLite with automatic migrations
  • Frontend: TypeScript with React-like components
  • Styling: TailwindCSS for responsive design
Code
backendsharedREADME.md
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.