Panha Seth
CASE STUDYOctober 2025

Building a Full-Stack Scholarship Registry SaaS: Architecture & Lessons

How we architected Domner, a high-performance opportunity tracker for Cambodian students using Next.js 16, TypeScript, Node.js, and PostgreSQL.

Building a Full-Stack Scholarship Registry SaaS

When educational grants and scholarship programs are scattered across disparate social channels, university bulletin boards, and ministry PDF announcements, aspiring students miss life-changing opportunities.

Domner was created to eliminate this friction. In this deep dive, I break down the engineering decisions, database schema design, and caching strategies that enabled sub-80ms response times for scholarship discovery across Cambodia.

System Architecture

We designed Domner with a decoupled micro-architecture:

code
SNIPPET
[ Next.js 16 Client & App Router ]
               │
               ▼
   [ Node.js + Express 5 API ]
   [ JWT + Role-Based Access ]
               │
               ▼
    [ PostgreSQL 16 Relational Engine ]

Database Schema & Indexing

Scholarship records require complex multi-faceted filtering: degree level, major, funding percentage (full vs partial), deadline, and eligibility criteria.

sql
SNIPPET
CREATE TABLE scholarships (
    id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
    title VARCHAR(255) NOT NULL,
    organization VARCHAR(255) NOT NULL,
    country VARCHAR(100) NOT NULL,
    funding_type VARCHAR(50) NOT NULL,
    deadline TIMESTAMPTZ NOT NULL,
    created_at TIMESTAMPTZ DEFAULT NOW()
);

CREATE INDEX idx_scholarships_deadline ON scholarships(deadline);
CREATE INDEX idx_scholarships_funding ON scholarships(funding_type);

Key Engineering Takeaways

Type Safety End-to-End: Sharing TypeScript interfaces between backend DTOs and frontend components reduced schema drift bugs to zero.
Relational Integrity: Using PostgreSQL with strict foreign keys ensured no orphaned applications when program requirements updated.
Client-Side Latency: Implementing optimistic UI state updates made bookmarking and application tracking feel instantaneous.