HomeAll 07 Systems
Real Project · 2025

/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.

ROLE
  • Fullstack Development
  • JWT Authentication
  • Public Archiving
TIMELINE & STUDIO
2025
Independent
DELIVERABLES
  • Public document archive
  • JWT-protected admin area
  • Granular file access control
  • Community-facing download flow
STACK
Next.jsTailwind CSSPrisma ORMMySQL
corecraft.my.id/work/clinic-portal
Clinic & Pharmacy Portal — Public Archive & JWT Auth preview
/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.
/04 BUILD TIMELINE
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.