Back to projects
Full-Stack Engineer

Doctor Tracker

Independent full-stack case study

Doctor Tracker is a monorepo application for managing a doctor directory, assigned patients and operational statistics. The Next.js App Router frontend talks to a versioned Express API backed by MongoDB, with bcrypt/JWT authentication in an HTTP-only cookie and all authorization enforced on the server. Public screenshots come from local runs seeded with fictional records; no public demo credentials are provisioned.

Project Overview

  • Role: Full-Stack Engineer
  • Client: Independent full-stack case study
  • Stack: Next.js 16, React 19, TypeScript
CHALLENGE

The problem we solved

Clinical administration needs fast lookup, reliable role boundaries and clear operational reporting. Moving filtering, sorting and counting to the client would not scale, while a cross-origin frontend and API required careful cookie, CORS and session handling.

SOLUTION

How we approached it

Separated rendering and domain logic into independently deployable Next.js and Express applications. Implemented allowlisted pagination, indexed MongoDB queries, debounced search, aggregation-based dashboard metrics, Zod validation at the API boundary and a frontend session gate backed by GET /auth/me.

OUTCOMES

Results delivered

Delivered server-side pagination, search, sorting and doctor/condition/date filtering
Protected admin workflows with bcrypt, JWT HTTP-only cookies, rate limiting and origin checks
Built dashboard totals, period metrics and registrations/patients-per-doctor charts
Documented deployment, CI/CD, security decisions and responsive visual evidence
VISUAL EVIDENCE

Screenshots from the actual implementation

Captured from local runs or approved project assets; no fabricated interfaces.

ENGINEERING DECISIONS

Key technical choices

01

Kept domain logic behind a versioned Express REST API so UI concerns stay separate from persistence and authorization

02

Used compound MongoDB indexes, .lean() reads and parallel count/page queries for list performance

03

Applied credentialed CORS allowlists, origin verification, Helmet headers and secure cookie configuration

04

Used fictional UAT seed data and withheld public demo credentials to avoid exposing patient or administrator information

TECHNOLOGIES

Tools and technologies used

Next.js 16React 19TypeScriptExpress 5MongoDBMongoose 9Tailwind CSS 4TanStack QueryVitest

Building scalable web and SaaS applications with modern full-stack technologies.

© 2026 Mohammad Fahad. All rights reserved.