gunners6518/Netflix-clone
概要
This is a Netflix clone application made with React+TypeScript.
Web・アプリ開発できること
- Hero banner with a random featured title
- Up to seven category rows (Popular Series, Trending, Action & Adventure, Kids, …) with horizontal scrolling
- Trailer preview: click a poster to play its YouTube trailer in an overlay
- Title detail page at /movie/[id], also shown as a modal when opened from the home screen
計測したスター増加
- 24時間
- 0
- 7日間
- 履歴を収集中
- 15日間
- 履歴を収集中
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルMovie Explorer
Browse trending movies and TV series and watch their trailers. A Netflix-style streaming UI demo built with Next.js 15 (App Router), React 19, TypeScript and Tailwind CSS v4. Titles, artwork and trailers come from The Movie Database (TMDB) API.
Live demo: https://movie-explorer-lilac.vercel.app — no sign-up or login required.

| Title detail with trailer | Mobile |
|---|---|
![]() |
![]() |
Features
- Hero banner with a random featured title
- Up to seven category rows (Popular Series, Trending, Action & Adventure, Kids, …) with horizontal scrolling
- Trailer preview: click a poster to play its YouTube trailer in an overlay
- Title detail page at
/movie/[id], also shown as a modal when opened from the home screen - Responsive layout for mobile, tablet and desktop
- Open access: no account needed to browse
Tech stack
| Area | Tools |
|---|---|
| Framework | Next.js 15 (App Router), React 19 |
| Language | TypeScript (strict mode) |
| Styling | Tailwind CSS v4, shadcn/ui primitives (Radix UI), lucide-react icons |
| Data | TMDB REST API |
| CI | GitHub Actions (type check + production build) |
Implementation notes
- Server-side data fetching. Pages and rows are async React Server Components. The TMDB API key is read only on the server; the browser talks to an internal route (
/api/movies/[id]/videos) and never sees the key. - Streaming with Suspense. Each category row is wrapped in its own
<Suspense>boundary with a skeleton fallback, so the page renders progressively instead of waiting for all seven requests. - Caching. TMDB requests use
fetchwithnext: { revalidate: 3600 }, so the home page is statically generated and refreshed at most once an hour. - Intercepting + parallel routes.
app/@modal/(.)movie/[id]shows the detail page as an overlay during client-side navigation, whileapp/movie/[id]serves the same URL as a full page on reload or direct link. - Parallel requests. The detail page loads title data and the trailer with
Promise.all. - Typed API layer. TMDB responses are mapped into a small
Movietype inlib/tmdb.ts; components only depend on that type. - Race-safe trailer loading. When posters are clicked quickly, responses for an earlier click are ignored so the overlay always matches the selected title.
Getting started
Requirements: Node.js 18.18 or later, and a free TMDB API key (get one here).
git clone https://github.com/gunners6518/Netflix-clone.git
cd Netflix-clone # or movie-explorer after the repository rename
npm install
cp .env.example .env.local # then set TMDB_API_KEY in .env.local
npm run dev
Open http://localhost:3000.
Without TMDB_API_KEY, the app still builds and shows a setup notice instead of the catalog.
Scripts
| Command | Description |
|---|---|
npm run dev |
Start the development server |
npm run build |
Create a production build |
npm run start |
Serve the production build |
npm run typecheck |
Run the TypeScript compiler without emitting files |
Deploying to Vercel
Create a new Vercel project named movie-explorer:
- In the Vercel dashboard, choose Add New → Project.
- Import
gunners6518/Netflix-clone(framework preset: Next.js;vercel.jsonalready sets the build). - Set the Project Name to
movie-explorer. - Under Environment Variables, add
TMDB_API_KEYfor Production and Preview. - Click Deploy. If you add or change the key later, redeploy so the statically generated home page is rebuilt.
Suggested follow-up (repository owner): rename the GitHub repository to movie-explorer (Settings → General → Repository name). GitHub redirects the old URL, and the Vercel Git connection follows the rename.
Project structure
app/
@modal/(.)movie/[id]/ # Intercepted route: detail page as a modal
api/movies/[id]/videos/ # Server route that returns a trailer key
components/ # Banner, rows, detail view, shadcn/ui primitives
movie/[id]/ # Full-page detail route
page.tsx # Home page
lib/
tmdb.ts # TMDB client and types
actions/tmdb.ts # Trailer lookup
Disclaimer
Movie Explorer is a portfolio project and is not affiliated with or endorsed by Netflix. This product uses the TMDB API but is not endorsed or certified by TMDB.
関連プロジェクトを探す
読み込み中…

