Skip to content

The Movie Explorer App is a web application built using Next.js 15 that allows users to browse movies, search for specific ones, and view detailed information. Users can also add movies to their favorites and manage their collection.

Notifications You must be signed in to change notification settings

SARVESHYOGI/movie-explorer-app

Repository files navigation

Movie Explorer App

📌 Overview

The Movie Explorer App is a web application built using Next.js 15 that allows users to browse movies, search for specific ones, and view detailed information. Users can also add movies to their favorites and manage their collection.

🚀 Features

🔐 Authentication

  • User login and registration using NextAuth.js
  • Authentication state stored in cookies.
  • Main features accessible only to logged-in users.

🎬 Movie Listing Page

  • Fetches and displays movies from the TMDB API.
  • Shows poster, title, and rating for each movie.
  • Supports pagination.

🔍 Search Functionality

  • Includes a search bar for dynamic movie search.
  • Fetches search results from the API and displays them.

📃 Movie Detail Page

  • Clicking a movie navigates to a detailed page (/movie/[id]).
  • Displays title, description, rating, release date, and more.

❤️ Favorite Movies Feature

  • Users can add/remove movies from their favorites.
  • Favorite movies are stored in MONGODB.
  • Includes a "My Favorites" page to view saved movies.

🎨 UI & Performance Considerations

  • Responsive design using Tailwind CSS.
  • Next.js Image Optimization for faster image loading.
  • Loading skeletons for better user experience.

Preview 🖼️

Home Page Home Page Login Page Login Page Register Page Register Page Query Search Page query search page Movie Details Page movie details page Added Favourite movie Favourite Page Pagination pagination

🛠️ Tech Stack

  • Framework: Next.js 15 (App Router)
  • Language: TypeScript
  • Styling: Tailwind CSS
  • Authentication: NextAuth.js
  • API: TMDB API
  • Deployment: Vercel

🔧 Installation & Setup

# Clone the repository
git clone https://github.com/SARVESHYOGI/movie-explorer-app.git


# Install dependencies
npm install

# Set up environment variables
# Create a `.env.local` file in the root directory and add:
NEXT_PUBLIC_TMDB_API_KEY=your_tmdb_api_key
NEXTAUTH_SECRET=your_nextauth_secret
NEXTAUTH_URL=http://localhost:3000
API_ACCESS_TOKEN=your_tmdb_api_access_token
MONGODB_URI=mongodb_uri

# Run the development server
npm run dev

# Open in your browser
http://localhost:3000

🎉 Credits

  • API: The Movie Database (TMDB) API.
  • Framework: Next.js
  • Styling: Tailwind CSS

📩 Contact

For any queries, reach out via [[email protected]] or open an issue on GitHub.


Happy Coding! 🚀

About

The Movie Explorer App is a web application built using Next.js 15 that allows users to browse movies, search for specific ones, and view detailed information. Users can also add movies to their favorites and manage their collection.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published