-- : -- : --

Paused

La La Land (Piano)

Justin Hurwitz

Home
Back to Projects
2026/ 112026

Netflex

Full-Stack Streaming Catalogue Demo

Overview

A full-stack streaming catalogue demo with Next.js 14 frontend and TypeScript/Express API. Features responsive landing page with Clerk authentication, sample movie catalogue with 90 titles across 9 categories, and JWT-protected user watchlists.

Netflex is a learning/demo streaming catalogue application with separate Next.js frontend and Express API. It demonstrates modern web patterns: App Router, Clerk authentication, API route rewrites, JWT-based API auth, and catalogue browsing with watchlist management.

Key Features

Responsive Landing Page

Trending title cards, product features, FAQs, and Clerk modal sign-in/sign-up

Static Sample Catalogue

90 movie/series records in 9 categories plus featured title with Picsum placeholder images

Catalogue API

Hero content, categories, title details, and title-name search endpoints

Dual Authentication

Clerk for frontend routes, Express API with bcrypt-hashed passwords and 7-day JWTs

Per-User Watchlist

Authenticated API endpoints for reading, adding, and removing movies from user watchlist

JSON-File Storage

Local development user storage for simple demonstrations without database setup

Technology Stack

Next.js 14React 18TypeScriptClerkExpress 4Node.jsbcryptjsjsonwebtokenAxiosCSS

Challenges

  • Implementing dual authentication systems: Clerk for frontend, JWT for API

  • Building a responsive catalogue UI with trending cards and category rows

  • Managing API rewrites and CORS for separate frontend/backend development

  • Designing a simple JSON-file user store for demo purposes without database complexity

  • Creating a realistic catalogue structure with featured content and category organization

Solutions

  • Separated Clerk (frontend route protection) from API JWT auth (watchlist endpoints)

  • Built Next.js API rewrites to proxy /api/* to Express server for unified development

  • Designed catalogue structure with 90 hard-coded titles in 9 categories plus featured hero

  • Implemented JSON-file persistence for API users with bcrypt password hashing and JWT issuance

  • Created flexible MovieCard and Row components for responsive grid and scrolling layouts

  • Added CORS middleware with configurable origins for development and production

Project Architecture

// Project Structure

netflex/
├── client/                  # Next.js frontend
│   ├── src/
│   │   ├── app/
│   │   │   ├── layout.tsx   # Clerk provider
│   │   │   └── page.tsx     # Landing page
│   │   ├── components/
│   │   │   ├── Hero.tsx
│   │   │   ├── MovieCard.tsx
│   │   │   ├── Navbar.tsx
│   │   │   └── Row.tsx
│   │   ├── lib/api.ts       # Axios API client
│   │   ├── middleware.ts    # Clerk route protection
│   │   └── styles/
│   └── next.config.js       # API rewrite
├── server/                  # Express backend
│   ├── src/
│   │   ├── controllers/
│   │   │   └── movieController.ts
│   │   ├── data/movies.ts   # Sample catalogue
│   │   ├── middleware/auth.ts # JWT validation
│   │   ├── routes/
│   │   │   ├── auth.ts      # Register/login
│   │   │   ├── movies.ts    # Catalogue routes
│   │   │   └── watchlist.ts # Protected watchlist
│   │   ├── store/db.ts      # JSON-file storage
│   │   └── index.ts
│   └── tsconfig.json
└── public/

Key Learnings

  • Next.js 14 App Router with layout composition and metadata management

  • Clerk authentication integration with custom middleware and route protection

  • Express API architecture with TypeScript, controllers, and route organization

  • JWT lifecycle management: token creation, validation, and expiration handling

  • API rewrite patterns for unified development with separate frontend/backend

  • bcryptjs password hashing with proper salt rounds for security

  • JSON-file data persistence patterns and limitations for demo applications

Future Enhancements

Video playback integration, subscription/billing system, recommendation engine, social features (reviews/ratings), admin dashboard, PostgreSQL migration, and CDN-hosted artwork.