Production-grade REST API built entirely in raw C++17 — no Node, no Python, no runtime. BCrypt authentication, 3-tier RBAC, and PDF payslip generation.
Most payroll systems depend on heavy runtimes (Node.js, Python, JVM) making deployment complex and the attack surface broad. The challenge was to build a complete payroll management system using only compiled, systems-level code:
Raw HTTP Server
Using cpp-httplib — a header-only HTTP library — the entire server compiles into a single binary with zero shared library dependencies.
BCrypt + Bearer Auth
Military-grade password hashing with BCrypt. Token-based session management using bearer tokens stored server-side.
3-Tier RBAC
Strict role hierarchy: Admin can manage all; Manager can view team payroll; Employee can only view own payslip.
PDF Payslip Engine
Generates professional PDF payslips using HTML templates rendered through wkhtmltopdf.