MovieX

Frontend
Web Dev
MovieX

Tech Stack

React
Javascript
Tailwind CSS
REST API
Vitest
Vercel

Description

MovieX is a single-page app for discovering movies and TV shows on The Movie Database (TMDB) API. I first built it in December 2023 with React 18, Redux Toolkit and Material UI, as a project for learning to structure a data-heavy React app.

In October 2026 I came back to it, fixed its critical bugs and rebuilt it on React 19, React Router 7, Vite 8 and Tailwind CSS 4, then deployed it on Vercel. I replaced Redux with small, tested hooks, made data fetching race-free and added a Vitest test suite. I also added new features: live search suggestions, a watchlist, person pages, where-to-watch information and shareable filters.

  • Rebuilt the app on React 19, React Router 7, Vite 8 and Tailwind CSS 4, dropping Redux Toolkit, Material UI and Sass.
  • Made data fetching race-free: useFetch and a new usePaginatedFetch hook cancel stale requests with AbortController, so a slow response for an old page or query can never overwrite the current one.
  • Built a watchlist with no state library: a small localStorage-backed store read through React's useSyncExternalStore, which stays in sync across browser tabs and survives storage failures.
  • Added live search suggestions with a debounced, cancellable request and an accessible combobox (keyboard navigation, ARIA roles).
  • Added person pages and a where-to-watch section that shows streaming, rent and buy options for the viewer's country, from TMDB's JustWatch data.
  • Kept Explore filters in URL search params so filtered views can be shared, with infinite scroll that removes duplicate titles and respects TMDB's 500-page limit.
  • Lazy-loaded every route behind an error boundary, with loading skeletons, scroll-to-top on navigation and per-page document titles.
  • Wrote 30 Vitest and React Testing Library tests covering the API client, media helpers, fetch hooks, watchlist store, search form, explore filters and details page.

Page Info

Home

Hero banner over a backdrop from an upcoming movie, with a search bar, followed by Trending, What's Popular and Top Rated carousels with Day/Week and Movies/TV Shows switches.

MovieX: Home screenshot

Live Search

Suggestions appear as you type, after a short pause, and can be navigated with the arrow keys. Pressing Enter opens a full results page that loads more titles as you scroll.

MovieX: Live Search screenshot

Explore

Separate Movies and TV Shows pages with multi-select genre filters, seven sort orders and infinite scroll. Filters are stored in the URL, so a filtered view can be bookmarked or shared.

MovieX: Explore screenshot

Details

Poster, genres, rating, overview, release info, director and writers, an add-to-watchlist button, where to stream, rent or buy the title in the viewer's country, the top cast, a trailer in a pop-up player, and similar and recommended titles.

MovieX: Details screenshot

Person Pages

Each cast member links to a page with their photo, biography, age, place of birth and best-known films and shows.

MovieX: Person Pages screenshot

Watchlist

Titles saved from any details page, kept in the browser between visits and in sync across open tabs, with a count in the header.

MovieX: Watchlist screenshot