/CASE STUDY · 06 · FULLSTACK
Clinic & Pharmacy Portal — Public Archive & JWT Auth
Public data archiving and administrative record platform with JWT authentication protection and granular file access security.
corecraft.my.id/work/clinic-portal

/01 THE PROBLEM
Problem & Friction
The clinic needed to publish records for the community without ever exposing its internal files, and had no way to enforce that boundary.
JWTGating every administrative route
GranularFile-level access control
ThousandsPublic document downloads served
/02 SYSTEM DESIGN & ARCHITECTURE
Architectural Breakdown
- Next.js front end styled with Tailwind CSS
- Prisma ORM over MySQL
- JWT authentication guarding every administrative route
- Two record classes — public and internal — separated at the data layer
/03 IMPLEMENTED SOLUTIONS
Resilience & Outcomes
- Public and internal records are split in the data model rather than hidden in the interface.
- JWT sessions gate the administrative area end to end.
- File access is granted per record instead of per folder.
Phase 01
Problem
Public archives had to be published without exposing internal files.
Phase 02
Build
Split public and internal records behind JWT authentication.
Phase 03
Result
Thousands of public document downloads handled with granular access security.