Full Stack Development

NYAMPE: GPS-Verified Electronic Attendance

Automating attendance tracking with precise HTML5 GPS coordinates and Server-Side Haversine distance calculations, eliminating fraud and reducing manual manager overhead by 83%.

HR Tech & Operations 2026 Golang, Angular, MySQL
83% Less Admin Time
5+ Organizations
1m GPS Accuracy
1-Click Auto-Approval

The Challenge

Traditional attendance systems are vulnerable to fraud, such as buddy punching or spoofed locations, and create heavy administrative overhead for managers. Validating who was actually on-site required manual checking of paper cards or trusting easily forgeable apps. The client needed a bullet-proof system to automatically verify employee locations using exact coordinates without requiring expensive physical biometric devices.

"We needed to automate the approval of hundreds of daily clock-ins, ensuring personnel were physically within their assigned office radiuses, while gracefully handling off-site exceptions."

Architectural Overhaul

I architected and developed NYAMPE from the ground up using a high-performance Go (Golang) backend, powered by the Gin framework and GORM, and a responsive Angular 16 frontend. The system relies on precise mathematical computations for location validation.

graph TD Employee[Employee Browser] -->|HTML5 Geolocation| API(Go Backend) subgraph Location Engine [Server-Side Haversine Verification] API --> Distance[Calculate Haversine Distance] Distance --> DB[(MySQL 8.0)] DB -->|Fetch Office Target GPS| Distance end Distance -->|Distance <= Radius| AutoApprove[✅ Auto-Approved] Distance -->|Distance > Radius| Pending[⚠️ Pending Manual Review] AutoApprove --> Dashboard[Manager Real-Time Dashboard] Pending --> Dashboard style Employee fill:#F5F1EA,stroke:#C4B49A,stroke-width:1px style API fill:#FEF3C7,stroke:#B45309,stroke-width:2px,color:#92400E style Distance fill:#FAF7F2,stroke:#C4B49A,stroke-width:1px style DB fill:#EDE8DC,stroke:#A08060,stroke-width:1px style AutoApprove fill:#dcfce7,stroke:#16a34a,stroke-width:1px style Pending fill:#fef08a,stroke:#ca8a04,stroke-width:1px style Dashboard fill:#F5F1EA,stroke:#C4B49A,stroke-width:1px

Go Micro-Backend

Utilizes Gin Web Framework and GORM for lightning-fast API responses and database migrations.

Angular 16 Frontend

Reactive forms and TailwindCSS deliver a seamless, native-feeling mobile and desktop experience.

Stateless RBAC

Role-Based Access Control via stateless JWTs separating Employees, Managers, and Super Admins.

Multi-Office Support

Dynamic configuration allowing managers to oversee 1-4 offices, each with custom coordinates and radiuses.

Deep Dive: Core Implementations

1

Server-Side Haversine Formula

To prevent location spoofing, the browser captures the HTML5 Geolocation, but the validation logic is strictly server-side. The Go backend computes the great-circle distance between the employee's coordinates and their assigned office profile, accurate to approximately 1 meter.

utils/distance.go Math Computation
2

One-Click Auto-Approval Workflow

If the calculated distance is less than or equal to the configured allowed radius, the system instantly marks the attendance as Approved. If not, it falls into a Pending state, securely queuing it for manual review by a Manager in the dashboard.

Workflow Automation State Management
3

Real-Time Manager Dashboard

A reactive queue provides managers with a real-time overview of Present, Absent, Late, or On Leave personnel across multiple branches, enabling immediate oversight and rapid exception handling.

RxJS Angular Components

Application Interface

A look at the modern, responsive UI designed for both employees in the field and managers in the office.

Employee Clock-In Mobile View

Employee Clock-In

GPS-verified attendance with 1-click auto-approval.

Manager Dashboard Desktop View

Manager Dashboard

Real-time queue of personnel status and exceptions.

Leave Management Screen

Leave Management

Streamlined workflow for requesting and approving time off.

Results & Impact

The NYAMPE platform revolutionized attendance tracking for our clients, creating a frictionless experience for employees and unparalleled visibility for management.