Solo build: API, database schema, RBAC, the React client and the production deployment.
The problem
Campus maintenance requests get lost between a noticeboard, a WhatsApp group and whoever happens to be on duty. Nobody can see the status of their own request.
The approach
A PHP REST API over MySQL with role-based access control, serving a React SPA. Students report issues with category, priority and an image; staff work an assigned queue; admins assign tickets, manage users and export metrics. Security was treated as part of the build: CSRF tokens regenerated on authentication, prepared statements throughout, hardened `.htaccess`, and enforced HTTPS.
Decisions
RBAC at the API, not just the router
Hiding a route in the client is a UI convenience. Every endpoint re-checks the role, so a crafted request from a student session cannot reach an admin action.
Security hardening as a feature
CSRF tokens regenerated on authentication, `SameSite=Lax` session cookies with reverse-proxy HTTPS detection, global JSON exception handling, and a production seed that creates categories only — never demo accounts.