Skip to content

Repository files navigation

🎬 Movie App (React + Tailwind CSS + TMDB API)

A modern and responsive movie search application built using React, Tailwind CSS, and the TMDB API.
It allows users to search for movies, view details, and play official YouTube trailers directly from the app.


🌟 Features

  • 🔍 Search Movies — Search by title using the TMDB API
  • 🎥 Watch Trailers — Integrated YouTube trailers for movies
  • 📱 Responsive Design — Fully responsive UI using Tailwind CSS
  • 🌑 Dark Mode Support (if enabled in Tailwind)
  • Fast & Lightweight — Built with Vite for blazing-fast performance

📸 Screenshots

🎬 Home Page

Home Page

📽 Trailer Playback

Trailer Playback


🚀 Live Demo

🔗 View Live App


Folder Structure

/movie-app │ ├── src/ │ ├── App.jsx # Main movie search UI and logic │ ├── main.jsx # React entry point │ └── index.css # Tailwind base styles │ ├── public/ # Static assets (if present) ├── tailwind.config.js # Tailwind setup ├── postcss.config.js # PostCSS setup └── package.json


⚙️ Setup & Run Locally

# 1️⃣ Clone the repository
git clone https://github.com/Durgarao3/Movie-app.git
cd Movie-app

# 2️⃣ Install dependencies
npm install

# 3️⃣ Start the development server
npm run dev

🎨 Tailwind CSS Setup (if you are starting fresh)

If you cloned this repo, Tailwind is already set up. But if you’re starting from scratch:

# Install Tailwind CSS & dependencies
npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p

🔑 TMDB API Setup

This app uses TMDB API for fetching movie data and YouTube trailer links.

  1. Sign up at TMDB Developer Portal
  2. Create a new API key
  3. Create a .env file in your project root and add:
VITE_TMDB_API_KEY=your_tmdb_api_key_here

🛠 Tools & Tech

  1. React — Component-based UI
  2. Tailwind CSS — Utility-first styling
  3. Vite — Lightning-fast build tool
  4. TMDB API — Movie search & trailer data
  5. YouTube Embed — Play trailers directly in the app

Environment Notes

Make sure you add your TMDB API key securely when deploying or in environment variables

Author Built and styled by Durgarao3


How to Add & Push to GitHub

In your project’s root directory (Movie-app):

# Step 1: Create the README.md
touch README.md
# Then paste the README content above into README.md

# Step 2: Stage and commit the file
git add README.md
git commit -m "Add README with project overview"

# Step 3: Push to GitHub
git push origin main

About

A responsive Movie App built with React, Tailwind CSS, and TMDB API, featuring movie search and YouTube trailer playback.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages