WorkPoint is a workforce management dashboard I built as a personal engineering project to track departments, employees, budgets, and KPIs from a single interface. This post covers the architecture, the decisions behind it, and the problems I ran into.
The problem
Companies often manage departments, employees, and budgets across spreadsheets and disconnected tools, with no single view of headcount, salary utilization, or turnover trends. WorkPoint puts those numbers in one dashboard.
Stack decisions
Why .NET + Dapper (not an ORM)
The backend runs on .NET C# with Dapper for data access. I chose Dapper over Entity Framework because the queries for this project are specific: aggregations across departments, budget rollups, and filtered employee lists. Writing SQL directly with Dapper and stored procedures gave me full control over query plans and kept the data layer predictable.The API is RESTful, uses JWT for authentication, and runs on Azure App Services. It is split into controllers, services, and a data-access layer, wired together with dependency injection, which keeps each service testable on its own.
Why Next.js + MUI
The frontend uses Next.js with React, Tailwind CSS, and Material-UI. MUI was the right call here, since the dashboard needed data tables, form controls, and chart components that work well together out of the box. Next.js handles server-side rendering for the initial load and keeps navigation snappy with client-side routing.Deployed on Vercel with environment variables pointing to the Azure-hosted API.
Data model
The core entities are straightforward:
Users: name, email, gender, active status, hire and exit dates
UserJobInfo: job title and department
UserSalary: salary
Auth and RefreshTokens: password hashes and refresh tokens
Stored procedures handle the heavier queries: department-level salary statistics, employees who joined or left each month, and monthly budget breakdowns.
Key features
Department management
Each department view shows salary totals and ranges, plus active and inactive employee counts.
Metrics dashboard
The metrics page tracks KPIs over time: employees who joined or left, the monthly budget split between active and inactive employees, and salary utilization. All of it is backed by stored procedures that return pre-aggregated data, so the frontend just renders it.
Authentication
Every API controller requires a signed-in user, and the JWT carries only the user id. Sign-in returns a short-lived access token and a refresh token; each refresh token works once and is replaced when used. Passwords are hashed with PBKDF2, and the sign-in endpoints are rate-limited.
Testing and CI
The backend has xUnit tests for the services, controllers, and helpers, plus integration tests for the HTTP and authentication pipeline. The frontend uses Vitest, and GitHub Actions runs linting, type checks, tests, and a production build on every push and pull request to the main branch.
Challenges
Budget aggregation
Budget rollups across departments and months are computed in SQL Server stored procedures, so the API returns data that is ready to chart instead of leaving the math to the frontend.
Azure + Vercel split deployment
Running the API on Azure and the frontend on Vercel meant dealing with CORS configuration and keeping environment variables in sync across both platforms. The API reads its allowed origins from configuration, so the production CORS policy accepts only the origins listed there.