Skip to content

JohnCard/Movie-searcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎬 Movie Searcher

A clean, responsive movie search application built with React 19 that lets users discover films using The Movie Database (TMDB) API. Type a title, hit search, and browse movie posters in a beautiful grid layout.


Tech Stack

React Vite TMDB API CSS3 JavaScript


Features

  • 🔍 Real-time Movie Search — Query TMDB's vast database by movie title
  • 🖼️ Poster Grid — Results displayed in a responsive card grid with movie posters
  • Fast & Lightweight — Minimal dependencies, built with Vite for instant HMR
  • 📱 Mobile Responsive — Adaptive grid layout that works on all screen sizes
  • 🔐 Secure API Keys — Environment variables via Vite's import.meta.env

Project Structure

Movie-searcher/
├── index.html
├── package.json
├── vite.config.js
└── src/
    ├── main.jsx              # App entry point
    ├── MovieSearch.jsx        # Main search component (fetch, state, UI)
    └── styles/
        └── search.css         # Responsive styles with mobile breakpoints

Getting Started

Prerequisites

Installation

# Clone the repository
git clone https://github.com/JohnCard/Movie-searcher.git

# Navigate to the project
cd Movie-searcher

# Install dependencies
npm install

# Create environment file
echo "VITE_MOVIE_SEARCH=your_tmdb_api_key_here" > .env

# Start development server
npm run dev

Environment Variables

Variable Description
VITE_MOVIE_SEARCH Your TMDB API Bearer token

Screenshots

Search Interface Movie Results
Search Results

API Reference

This app uses the TMDB Search API:

GET https://api.themoviedb.org/3/search/movie?query={search_term}

Movie posters are loaded from TMDB's image CDN:

https://image.tmdb.org/t/p/original/lFx2i2pg1BoaD7grcpGDyHM1eML.jpg

About

A entity ["software","React","javascript library"] app that fetches movie data from the entity ["company","The Movie Database (TMDb)","movie api provider"] API. Users can browse movie details such as titles, ratings, and images through a simple and interactive interface.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors