Skip to content

Latest commit

Β 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎬 Movie Discovery App

Find movies you'll enjoy β€” without the hassle.

A modern, responsive movie discovery web application built with React. Browse thousands of movies, search in real time, and see what's trending based on actual user searches.

πŸ”— Live Demo: react-project-api-fetching.vercel.app

App Screenshot


✨ Features

  • πŸ” Real-time Search β€” Search through thousands of movies with debounced input for optimized API calls
  • πŸ”₯ Trending Movies β€” Trending algorithm powered by Appwrite: tracks search counts and ranks the most searched movies
  • 🎞️ All Movies Grid β€” Browse popular movies with poster, rating, language & release year
  • ⭐ Ratings Display β€” Movie ratings fetched live from the API
  • πŸ“± Fully Responsive β€” Works smoothly on mobile, tablet & desktop
  • πŸŒ™ Modern Dark UI β€” Sleek dark theme with gradient accents

πŸ› οΈ Tech Stack

Technology Purpose
React UI library
Tailwind CSS Styling
TMDB API Movie data source
Appwrite Backend (trending searches database)
Vercel Deployment

βš™οΈ How the Trending Algorithm Works

  1. Every time a user searches for a movie, the search term is saved/updated in an Appwrite database
  2. The search count for that movie is incremented
  3. The trending section queries the top 5 most-searched movies, ordered by count
  4. Graceful error handling β€” if the backend is unavailable, the rest of the app keeps working

πŸš€ Getting Started

# Clone the repository
git clone https://github.com/Frontend-website-developer/react-project-api-fetching.git

# Navigate into the project
cd react-project-api-fetching

# Install dependencies
npm install

# Create a .env file and add your keys
VITE_TMDB_API_KEY=your_tmdb_api_key
VITE_APPWRITE_PROJECT_ID=your_appwrite_project_id
VITE_APPWRITE_DATABASE_ID=your_database_id
VITE_APPWRITE_COLLECTION_ID=your_collection_id

# Run the development server
npm run dev

πŸ“Έ Screenshots

Home & Search Movie Grid
Home Grid

πŸ‘¨β€πŸ’» Author

Syed Sajid Ali β€” Frontend Developer, Doha, Qatar

About

🎬 Movie discovery app with real-time search & trending algorithm β€” React, Tailwind, TMDB API, Appwrite

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages