Skip to content

A Next.js Transition View Demo has the features of real-time search, movie details, and cast information powered by TMDB API.

Notifications You must be signed in to change notification settings

bitmanvs/nextjs-transition-view-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f35accf Β· Dec 9, 2024

History

1 Commit
Dec 9, 2024
Dec 9, 2024
Dec 9, 2024
Dec 9, 2024
Dec 9, 2024
Dec 9, 2024
Dec 9, 2024
Dec 9, 2024
Dec 9, 2024
Dec 9, 2024
Dec 9, 2024
Dec 9, 2024
Dec 9, 2024
Dec 9, 2024

Repository files navigation

TMDB Movies Explorer

A Next.js Transition View Demo using Next.js and (https://github.com/bitmanvs/nextjs-transition-view-app). This features real-time search, movie details, and cast information powered by TMDB API.

Features

  • 🎬 Browse popular movies
  • πŸ” Real-time movie search
  • 🎯 Detailed movie information including cast, ratings, and runtime
  • 🎨 Beautiful UI with smooth transitions
  • πŸ“± Fully responsive design
  • ⚑ Fast page loads with static generation

Tech Stack

  • Framework: Next.js 13
  • Styling: Tailwind CSS
  • UI Components: shadcn/ui
  • Icons: Lucide React
  • Animations: View Transitions API
  • Data: TMDB API

Getting Started

  1. Clone the repository
  2. Install dependencies:
    npm install --force
  3. Create a .env.local file with your TMDB API key:
    TMDB_API_KEY=your_api_key_here
    
  4. Run the development server:
    npm run dev

Project Structure

β”œβ”€β”€ app/                # Next.js app directory
β”‚   β”œβ”€β”€ layout.tsx     # Root layout
β”‚   β”œβ”€β”€ page.tsx       # Home page
β”‚   β”œβ”€β”€ search/        # Search functionality
β”‚   └── movie/         # Movie details
β”œβ”€β”€ components/        # React components
β”‚   β”œβ”€β”€ movie-card.tsx
β”‚   β”œβ”€β”€ movie-grid.tsx
β”‚   └── ui/           # shadcn/ui components
β”œβ”€β”€ lib/              # Utilities and API
└── public/           # Static assets

API Integration

The application uses the TMDB API for movie data. Key endpoints:

  • /movie/popular - Popular movies listing
  • /movie/{id} - Movie details
  • /search/movie - Movie search

Performance

  • Static page generation for popular movies
  • Lazy loading of images
  • Infinite scroll for pagination
  • Client-side caching

Contributing

  1. Fork the repository
  2. Create your feature branch
  3. Commit your changes
  4. Push to the branch
  5. Open a pull request

License

MIT License - feel free to use this project for your own purposes.

About

A Next.js Transition View Demo has the features of real-time search, movie details, and cast information powered by TMDB API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published